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





Prep2Certsis 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.
Please contact info@Prep2Certs.com and we will provide you with alternative payment options.
You can by Contacting our sales team.