1Z0-809 Dumps

1Z0-809 Free Practice Test

Oracle 1Z0-809: Java SE 8 Programmer II

QUESTION 16

Which statement is true about java.time.Duration?

Correct Answer: C

QUESTION 17

Which code fragment is required to load a JDBC 3.0 driver?

Correct Answer: B

QUESTION 18

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

Correct Answer: A

QUESTION 19

Given:
1Z0-809 dumps exhibit
and the code fragment:
1Z0-809 dumps exhibit
Which modification enables the code fragment to print Speaker?

Correct Answer: B

QUESTION 20

Given the code fragment:
String str = “Java is a programming language”; ToIntFunction indexVal = str: : indexOf; //line n1 int x = indexVal.applyAsInt(“Java”); //line n2
System.out.println(x); What is the result?

Correct Answer: A