1z0-809 문제 166

주어진:
클래스 ImageScanner는 AutoCloseable을 구현합니다. {
public void close()는 예외를 던집니다. {
System.out.print("스캐너가 닫혔습니다.");
}
public void scanImage()는 예외를 던집니다. {
System.out.print("스캔.");
throw new Exception("검색할 수 없습니다.");
}
}
클래스 ImagePrinter는 AutoCloseable을 구현합니다. {
public void close()는 예외를 던집니다. {
System.out.print("프린터가 닫혔습니다.");
}
공개 무효 printImage() {System.out.print("인쇄."); }
}
이 코드 조각:
시도(ImageScanner ir = new ImageScanner();
ImagePrinter iw = 새로운 ImagePrinter()) {
ir.scanImage();
iw.printImage();
} 잡기(예외 e) {
System.out.print(e.getMessage());
}
결과는 무엇입니까?

1z0-809 문제 167

2015년에는 미국 뉴욕의 일광 절약 시간제가 3월 8일 오전 2시에 시작됩니다. 결과적으로 오전 2시가 오전 3시가 됩니다.
주어진 코드 조각:

결과는 무엇입니까?

1z0-809 문제 168

주어진 코드 조각:

다음 중 독립적으로 수행할 때 코드에서 Joe:true:100.0을 인쇄할 수 있도록 하는 두 가지 수정 사항은 무엇입니까?

1z0-809 문제 169

주어진 코드 조각:

결과는 무엇입니까?

1z0-809 문제 170

주어진:
공개 클래스 샘플 클래스 {
공개 정적 무효 메인(문자열[] 인수) {
AnotherSampleClass asc = 새로운 AnotherSampleClass(); 샘플 클래스 sc = 새로운 샘플 클래스(); sc = 오름차순; System.out.println("sc: " + sc.getClass()); System.out.println("asc: " + asc.getClass());
}}
클래스 AnotherSampleClass는 SampleClass {를 확장합니다.
}
결과는 무엇입니까?