Oracle Java SE 8 Programmer II (1z0-809 Korean Version) - 1z0-809 Korean Exam Practice Test

주어진 코드 조각:

결과는 무엇입니까?

Correct Answer: A Vote an answer
주어진 코드 조각:
List<String> nL = Arrays.asList("짐", "존", "제프");
Function<문자열, 문자열> funVal = s -> "안녕하세요 : ".contact(s);
nL.Stream()
.map(funVal)
.peek(시스템 출력::인쇄);
결과는 무엇입니까?

Correct Answer: A Vote an answer
주어진 코드 조각:
UnaryOperator<Double> uo1 = s -> s*2;//라인 n1
List<Double> loanValues ​​= Arrays.asList(1000.0, 2000.0);
대출값.stream()
.filter(lv -> lv >= 1500)
.map(lv -> uo1.apply(lv))//line n2
.forEach(s -> System.out.print(s + " "));
결과는 무엇입니까?

Correct Answer: C Vote an answer
다음 코드 조각을 참고하세요.

ProductCode 클래스를 정의해 달라는 요청을 받았습니다. ProductCode 클래스 정의는 c1 인스턴스 생성이 성공하도록 허용해야 하며, c2 인스턴스 생성 시에는 컴파일 오류가 발생해야 합니다.
ProductCode의 어떤 정의가 요구 사항을 충족합니까?

Correct Answer: C Vote an answer
주어진:

그리고 코드 조각:

ColorSorter 클래스의 어떤 정의가 블록 목록을 정렬합니까?

Correct Answer: A Vote an answer
주어진 코드 조각:
Path path1 = Paths.get("/app/./sys/");
Path res1 = path1.resolve("log");
Path path2 = Paths.get("/server/exe/");
Path res1 = path2.resolve("/readme/");
System.out.println(res1);
System.out.println(res2);
결과는 무엇입니까?

Correct Answer: D Vote an answer
주어진:

어떤 옵션이 실패합니까?

Correct Answer: D Vote an answer
주어진:
class Book {
int id;
String name;
public Book (int id, String name) {
this.id = id;
this.name = name;
}
public boolean equals (Object obj) { //line n1
boolean output = false;
Book b = (Book) obj;
if (this.name.equals(b name))}
output = true;
}
return output;
}
}
및 코드 조각:
책 b1 = 새 책(101, "자바 프로그래밍");
책 b2 = 새 책(102, "자바 프로그래밍");
System.out.println (b1.equals(b2)); //라인 n2
어떤 말이 진실이야?

Correct Answer: B Vote an answer
주어진:
클래스 Sum extends RecursiveAction { //라인 n1
정적 최종 정수 THRESHOLD_SIZE = 3;
정수 stIndex, lstIndex;
정수 [ ] 데이터;
public Sum (int [ ]data, int start, int end) {
this.data = data;
this stIndex = start;
this. lstIndex = end;
}
protected void compute ( ) {
int sum = 0;
if (lstIndex - stIndex <= THRESHOLD_SIZE) {
for (int i = stIndex; i < lstIndex; i++) {
sum += data [i];
}
System.out.println(sum);
} else {
new Sum (data, stIndex + THRESHOLD_SIZE, lstIndex).fork( );
new Sum (data, stIndex,
Math.min (lstIndex, stIndex + THRESHOLD_SIZE)
).compute ();
}
}
}
및 코드 조각:
ForkJoinPool fjPool = 새로운 ForkJoinPool( );
정수 데이터 [ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
fjPool.invoke(새로운 합계(데이터, 0, 데이터 길이));
1부터 10까지의 모든 정수의 합은 55라고 가정합니다.
어떤 말이 진실이야?

Correct Answer: C Vote an answer
주어진 코드 조각:
BiFunction<정수, 이중, 정수> val = (t1, t2) -> t1 + t2;//라인 n1 System.out.println(val.apply(10, 10.5)); 결과는 무엇입니까?

Correct Answer: D Vote an answer

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어