최신 1z1-809 무료덤프 - Oracle Java SE 8 Programmer II

Which statement is true about the single abstract method of the java.util.function.Predicate interface?

정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given the code fragment:
UnaryOperator<Integer> uo1 = s -> s*2;line n1
List<Double> loanValues = Arrays.asList(1000.0, 2000.0);
loanValues.stream()
.filter(lv -> lv >= 1500)
.map(lv -> uo1.apply(lv))
.forEach(s -> System.out.print(s + " "));
What is the result?

정답: C
Given the code fragment:

Which modification enables the code to print Price 5 New Price 4?

정답: B
Given the code fragments:

and

What is the result?

정답: C
Given the code fragment:
List<Integer> values = Arrays.asList (1, 2, 3);
values.stream ()
.map(n -> n*2)//line n1
.peek(System.out::print)//line n2
.count();
What is the result?

정답: D
Given:

What is the result?

정답: D
Given:
class UserException extends Exception { }
class AgeOutOfLimitException extends UserException { }
and the code fragment:
class App {
public void doRegister(String name, int age)
throws UserException, AgeOutOfLimitException {
if (name.length () <= 60) {
throw new UserException ();
} else if (age > 60) {
throw new AgeOutOfLimitException ();
} else {
System.out.println("User is registered.");
}
}
public static void main(String[ ] args) throws UserException {
App t = new App ();
t.doRegister("Mathew", 60);
}
}
What is the result?

정답: D
Given the code fragment:

Assume that the value of now is 6:30 in the morning.
What is the result?

정답: B
Given:
interface Doable {
public void doSomething (String s);
}
Which two class definitions compile? (Choose two.)

정답: B,E
Given:

and

Which interface from the java.util.function package should you use to refactor the class Txt?

정답: C

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기