1Z0-809 Dumps

1Z0-809 Free Practice Test

Oracle 1Z0-809: Java SE 8 Programmer II

QUESTION 11

Given the definition of the Vehicle class: class Vehicle {
String name;
void setName (String name) { this.name = name;
}
String getName() { return name;
}
}
Which action encapsulates the Vehicle class?

Correct Answer: D

QUESTION 12

Given the code fragment:
List codes = Arrays.asList (10, 20); UnaryOperator uo = s -> s +10.0; codes.replaceAll(uo);
codes.forEach(c -> System.out.println(c)); What is the result?

Correct Answer: C

QUESTION 13

Given the code fragment:
1Z0-809 dumps exhibit
Which code fragment, when inserted at line n1, ensures false is printed?

Correct Answer: C

QUESTION 14

1Z0-809 dumps exhibit
and the code fragment?
1Z0-809 dumps exhibit
What is the result?

Correct Answer: A

QUESTION 15

Given the code fragment:
1Z0-809 dumps exhibit
What is the result?

Correct Answer: A