单选题 Given:
What is the result of running the code with the –ea option?
A、-10
B、0
C、An AssertionError is thrown.
D、A compilation error occurs.
单选题 Given the code fragments:

And

What is the result?
A、Video played.Game played.
B、A compilation error occurs.
C、class java.lang.Exception
D、class java.io.IOException
单选题 Given the code fragment:


What is the result?
A、Searching...
B、Searching... Searching...
C、Searching... Searching... Searching...
D、A compilation error occurs.
单选题 
and the code fragment?

What is the result?
A、$15.00
B、15 $
C、USD 15.00
D、USD $15
单选题 Given the content of the employee.txt file:
Every worker is a master.
Given that the employee.txt file is accessible and the file allemp.txt does NOT exist, and the code fragment:
What is the result?
A、Exception 1
B、Exception 2
C、The program executes, does NOT affect the system, and produces NO output.
D、allemp.txt is created and the content of employee.txt is copied to it.
单选题 Given the code fragment:

What is the result?
A、Hello : Jim Hello : John Hello : Jeff
B、Jim John Jeff
C、The program prints nothing.
D、A compilation error occurs.
单选题 Given:
And the code fragment:

Which code fragment, when inserted at line n1, sorts the employees list in descending order of fName and then ascending order of lName?
A、.sorted (Comparator.comparing(Emp::getfName).reserved().thenComparing (Emp::getlName))
B、.sorted (Comparator.comparing(Emp::getfName).thenComparing(Emp::getlName))
C、.map(Emp::getfName).sorted(Comparator.reserveOrder())
D、.map(Emp::getfName).sorted(Comparator.reserveOrder().map (Emp::getlName).reserved
单选题 Given the code fragment:
Which code fragment, when inserted at line n1, ensures false is printed?
A、boolean b = cs.stream() .findAny() .get() .equals(“Java”);
B、boolean b = cs.stream() .anyMatch (w -> w.equals (“Java”));
C、boolean b = cs.stream() .findFirst() .get() .equals(“Java”);
D、boolean b = cs.stream() .allMatch(w -> w.equals(“Java”));