1z0-809 Korean試験無料問題集「Oracle Java SE 8 Programmer II (1z0-809 Korean Version) 認定」

주어진 코드 조각:
목록<정수> 숫자 = Arrays.asList(10, 20, 8):
System.out.println(
//line n1
);
코드가 nums 목록의 최대 숫자를 인쇄할 수 있도록 하려면 n1행에 어떤 코드 조각을 삽입해야 합니까?

주어진:
public class Customer {
private String fName;
private String lName;
private static int count;
public customer (String first, String last) {fName = first, lName = last;
++count;}
static { count = 0; }
public static int getCount() {return count; }
}
public class App {
public static void main (String [] args) {
Customer c1 = new Customer("Larry", "Smith");
Customer c2 = new Customer("Pedro", "Gonzales");
Customer c3 = new Customer("Penny", "Jones");
Customer c4 = new Customer("Lars", "Svenson");
c4 = null;
c3 = c2;
System.out.println (Customer.getCount());
}
}
결과는 무엇입니까?

주어진:
공개 클래스 Canvas 구현 Drawable {
공개 무효 추첨() { }
}
공개 추상 클래스 보드 확장 캔버스 { }
공개 클래스 Paper는 Canvas를 확장합니다. {
보호된 무효 그리기(int 색상) { }
}
공개 클래스 프레임 확장 캔버스 구현 Drawable {
공개 무효 크기 조정() { }
}
공개 인터페이스 드로어블 {
공개 추상 무효 그리기();
}
어떤 말이 진실이야?

주어진 코드 조각:

그리고

결과는 무엇입니까?

Employee 클래스의 정의가 주어지면:

이 코드 조각:

결과는 무엇입니까?

주어진 코드 조각:

결과는 무엇입니까?

어떤 클래스 정의가 컴파일되나요?

주어진 코드 조각:
List<String> codes = Arrays.asList ("DOC", "MPEG", "JPEG");
codes.forEach (c -> System.out.print(c + " "));
String fmt = codes.stream()
.filter (s-> s.contains ("PEG"))
.reduce((s, t) -> s + t).get();
System.out.println("\n" + fmt);
결과는 무엇입니까?

주어진 코드 조각:

결과는 무엇입니까?

주어진:
class Bird {
public void fly () { System.out.print("Can fly"); }
}
class Penguin extends Bird {
public void fly () { System.out.print("Cannot fly"); }
}
and the code fragment:
class Birdie {
public static void main (String [ ] args) {
fly( ( ) -> new Bird ( ));
fly (Penguin : : new);
}
/* line n1 */
}
다음 중 n1번째 줄에 삽입하면 Birdie 클래스를 컴파일할 수 있는 코드 조각은 무엇입니까?

주어진:

및 코드 조각:

결과는 무엇입니까?

解説: (GoShiken メンバーにのみ表示されます)
주어진 코드 조각:
Stream<List<String>> iStr= Stream.of (
Arrays.asList ("1", "John"),
Arrays.asList ("2", null)0;
Stream<<String> nInSt = iStr.flatMapToInt ((x) -> x.stream ());
nInSt.forEach (System.out :: print);
반환 결과;
};
str.stream()
.필터(테스트)
.findFirst()
.ifPresent(System.out :: 인쇄);
결과는 무엇입니까?

주어진 코드 조각:
public static void main(String[] args) IOException을 던짐 {
BufferedReader brCopy = null;
try (BufferedReader br = new BufferedReader (new FileReader("employee.txt"))) { // 라인 n1 br.lines().forEach(c -> System.out.println(c)); br카피 = br;//n2행
}
brCopy.ready(); //라인 n3;
}
닫힌 BufferedReader에서 호출될 때 BufferedReader의 준비 메서드가 예외를 throw하고 employee.txt에 액세스할 수 있고 유효한 텍스트가 포함되어 있다고 가정합니다.
결과는 무엇입니까?

employee.txt 파일의 내용이 주어지면:
모든 작업자는 마스터입니다.
employee.txt 파일에 액세스할 수 있고 allemp.txt 파일이 존재하지 않으며 코드 조각은 다음과 같습니다.

결과는 무엇입니까?