Oracle
1Z0-809
150 Minutes
196
Java SE 8 Programmer II
Select an option, then click Show Answer.
Which two are elements of a singleton class? (Choose two.)
Correct Answer: B, D
Given the code fragment: UnaryOperator uo1 = s -> s*2;line n1 List 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?
Correct Answer: D
Given the code fragment: List str = Arrays.asList (”my”, ”pen”, ”is”, ”your’, ”pen”); Predicate test = s -> { int i = 0; boolean result = s.contains (”pen”); System.out.print(i++) + ”:”); return result; }; str.stream() .filter(test) .findFirst() .ifPresent(System.out ::print); What is the result?
Correct Answer: A
What is true about the jav a.sql.Statement interface?
Correct Answer: D
Have questions? You’re not alone. We’ve answered the most frequently asked questions to help you feel confident and informed every step of the way.
DumpMasters a premium service offering a comprehensive collection of exam questions and answers for over 1400 certification exams. It is regularly updated and designed to help users pass their certification exams confidently.
You can by Contacting our sales team.
Free updates are available for the duration of your subscription, after the subscription is expired, your access will no longer be available.