Given:

Which three classes successfully override printOne()? (Choose three.)

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
F. Option F
Given: What is the output?

A. Hello world!Bonjour le monde!
B. Hello world!Hello world!
C. Bonjour le monde!Hello world!
D. Bonjour le monde!Bonjour le monde!
Given:

Which two changes need to be made to make this class compile? (Choose two.)
A. Change Line 1 to a class: public class API {
B. hange Line 2 to an abstract method: public abstract void checkValue(Object value) throws IllegalArgumentException;
C. hange Line 2 access modifier to protected: protected void checkValue(Object value) throws IllegalArgumentException;
D. Change Line 1 to extend java.lang.AutoCloseable: public interface API extends AutoCloseable {
E. Change Line 1 to an abstract class: public abstract class API {
Given:

and:

Which code, when inserted on line 10, prints the number of unique localities from the roster list?
A. .map(Employee::getLocality) .distinct() .count();
B. map(e > e.getLocality()) .count();
C. .map(e > e.getLocality()) .collect(Collectors.toSet()) .count();
D. .filter(Employee::getLocality) .distinct() .count();
A company has an existing Java app that includes two Java 8 jar files, sales-3.10. jar and clients-10.2.jar.
The jar file ,sales -8, 10, jar reference packages in clients -10.2 jar, but clients-10.2 jar does not reference packages in sales -8.10, jar.
They have decided to modularize clients-10.2.jar.
Which module-info. Java file would work for the new library version clients-10.3 jar?

A. Option A
B. Option B
C. Option C
D. Option D
Which statement about a functional interface is true?
A. It must be defined with the public access modifier.
B. It must be annotated with @FunctionalInterface.
C. It is declared with a single abstract method.
D. It is declared with a single default method.
E. It cannot have any private methods and static methods.
Given:

You want to obtain the Filechannel object on line 1. Which code fragment will accomplish this?

A. Option A
B. Option B
C. Option C
D. Option D
Which code fragment prints 100 random numbers?

A. Option A
B. Option B
C. Option C
D. Option D
Given the code fragment:

Which two code fragments, independently, replace line 1 to implement the equivalent reduce operation? (Choose two.)
A. Integer sum = data.map(a -> a).reduce((a, b) -> a+b);
B. OptionalInt value = data.mapToInt(a -> a).parallel().reduce(0, (a, b) -> a+b); Integer sum = value.getAsInt();
C. int s = 0; Integer sum = data.map(a -> a).reduce(0, (a-> a + s));
D. OptionalInt value = data.mapToInt(a -> a).parallel().reduce((a, b) -> a+b); Integer sum = value.getAsInt();
E. Integer sum = data.mapToInt(a -> a).reduce(0, (a,b)->a+b));
Given:

Which two code fragments remove the elements from the original list? (Choose two.)

A. Option A
B. Option B
C. Option C
D. Option D