AutoCloseable을 implements 한 클래스는 try - with - resources의 구조를 사용이 가능하다.
try(resource r){
}catch(Exception e){
}
의 구조이다.
'Language > Java' 카테고리의 다른 글
[Java] Collection Framework 소개 (0) | 2020.12.14 |
---|---|
[Java] 디폴트 메소드(default method) (0) | 2020.12.07 |
[JAVA] 제네릭 클래스, 제네릭 메소드 (0) | 2020.11.14 |
[JAVA]난수 발생(Math.Random()) (0) | 2020.11.14 |
자바 파일 입 출력 (0) | 2020.11.14 |