Given the code fragment:

What is the result?
A. A java.lang, UnsupportedOperationException is thrown.
B. True
C. False
D. A java.lang.NullPointerException is thrown.
Given:

Which two lines inserted in line 1 will allow this code to compile? (Choose two.)
A. protected void walk(){}
B. void walk(){}
C. abstract void walk();
D. private void walk(){}
E. public abstract void walk();
Given: Automobile.java

Car.java

What must you do so that the code prints 4?
A. Remove the parameter from wheels method in line 3.
B. Add @Override annotation in line 2.
C. Replace the code in line 2 with Car ob = new Car();
D. Remove abstract keyword in line 1.
Given TripleThis.java:

Compiling TripleThis.java gives this compiler warning:
Note: TripleThis.java uses unchecked or unsafe operations.
Which two replacements done together remove this compiler warning?
A. Replace line 12 with public static void printValue(Function f, int num) {
B. Replace line 12 with public static void printValue(Function f, T num) {
C. Replace line 9 with Function tripler = x --> { return (Integer) x * 3; }
D. Replace line 12 with public static void printValue(Function f, Integer num) {
E. Replace line 9 with Function tripler = x -> { return x * 3; }
Given:

You want to obtain the Stream object on reading the file. Which code inserted on line 1 will accomplish this?
A. var lines = Files.lines(Paths.get(INPUT_FILE_NAME));
B. Stream lines = Files.readAllLines(Paths.get(INPUT_FILE_NAME));
C. var lines = Files.readAllLines(Paths.get(INPUT_FILE_NAME));
D. Stream
Given:

Which statement is equivalent to line 1?
A. double totalSalary = list.stream().map(e > e.getSalary() * ratio).reduce (bo).ifPresent (p > p.doubleValue());
B. double totalSalary = list.stream().mapToDouble(e > e.getSalary() * ratio).sum;
C. double totalSalary = list.stream().map(Employee::getSalary * ratio).reduce (bo).orElse(0.0);
D. double totalSalary = list.stream().mapToDouble(e > e.getSalary() * ratio).reduce(starts, bo);
Given the code fragment:

What is the result?
A. December 17, 2018 12/17/18
B. 12/17/18 Dec 17, 2018
C. Friday, December 17, 2018 December 17, 2018
D. Dec 17, 2018 12/17/18
Given: Which is true?

A. Line 2 is the first line to cause a compilation error.
B. Line 3 is the first line to cause a compilation error.
C. It compiles without errors.
D. Line 1 is the first line to cause a compilation error.
Given:

and

Why does this compilation fail?
A. The method X.print (object) is not accessible to Y.
B. The method Y.print (Object) does not call the method super.print (Object).
C. In method X.print (Collection), System.out::println is an invalid Java identifier.
D. The method Y.print (Object...) cannot override the final method X.print (Object...).
E. The method print (Object) and the method print (Object...) are duplicates of each other.