Given:
Which two lines inserted in line 1 will allow this code to compile? (Choose two.)
Given:
Which two statements are valid to be written in this interface? (Choose two.)
Which interface in the java.util.function package will return a void return type?
Given the code fragment:
Path source = Paths.get(“/repo/a/a.txt”);
Path destination = Paths.get(“/repo”);
Files.move(source, destination); // line 1
Files.delete (source); // line 2
Assuming the source file and destination folder exist, what Is the result?
There is a copyServiceAPI that has the org.copyservice. spi. Copy interface
To use this service in a module, which module- info.java would be correct?
A)
B)
C)
D)
Given:
List
List
Which code fragment correctly forms a short list of words containing the letter “e”?
Given:
and:
Which code, when inserted on line 10, prints the number of unique localities from the roster list?
Given:
It is required that if p instanceof Pair then p.isValid() returns true.
Which is the smallest set of visibility changes to insure this requirement is met?
Given:
Which two changes need to be made to make this class compile? (Choose two.)
Given:
Which code, when inserted at one or more marked positions, would allow classes B and C to compile?
Given:
and
Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?
Which set of commands is necessary to create and run a custom runtime image from Java source files?
Which two statements correctly describe capabilities of interfaces and abstract classes? (Choose two.)
And the code fragment:
Which situation will occur on code fragment execution?