본문 바로가기
개발일기

학원 수업 11일차 220901

by hhana 2022. 10. 6.
  • 11-12


입출력스트림
FileOutputStream
try - catch - finally
FileOutputStream fos= new FileOutputStream(fileName, true); //true : 덮어쓰기X,  기존데이터 + 추가데이터 저장

 

 

  • 12-1


ObjectOutputStream
Classes that require special handling during the serialization and deserialization process must implement special methods with these exact signatures: 

직렬화..?
public class LottoDTO implements Serializable

 

 

  • 2-3


for(: 배열){}
향상된 for문(int a: 집합 ){}
집합에 있는 요소들을 하나씩 가져와서 a에 저장해서 돌림

 

 

  • 4-5


Exceptions
https://www.tutorialspoint.com/java/java_exceptions.htm

상속inheritance 교재 p.288
https://www.tutorialspoint.com/java/java_inheritance.htm
멘붕 조심....?

클래스대 클래스 상속은 단일 상속만 가능
InheritanceTest01.java

 

 

  • 5-6


부모클래스 생성자: 생략되어 있음 명시할때는 무조건 첫줄에만 허용

'개발일기' 카테고리의 다른 글

학원 수업 15일차 220907  (0) 2022.10.06
학원 수업 14일차 220906  (0) 2022.10.06
학원 수업 13일차 220905  (0) 2022.10.06
학원 수업 12일차 220902  (0) 2022.10.06
학원 수업 10일차 220831  (0) 2022.10.05
학원 수업 9일차 220830  (1) 2022.09.30
학원 수업 8일차 220829  (0) 2022.09.16
학원 수업 7일차 220826  (0) 2022.09.16

댓글