Given the code fragment:
Path currentFile = Paths.get("/scratch/exam/temp.txt");
Path outputFile = Paths get("/scratch/exam/new.txt");
Path directory = Paths.get("/scratch/");
Files.copy(currentFile, outputFile);
Files.copy(outputFile, directory);
Files.delete (outputFile);
The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.
What is the result?
A. /scratch/exam/new.txt and /scratch/new.txt are deleted.
B. The program throws a FileaAlreadyExistsException.
C. The program throws a NoSuchFileException.
D. A copy of /scratch/exam/new.txt exists in the /scratch directory and /scratch/exam/new.txt is deleted.
Which two expressions create a valid Java Path instance? (Choose two.)
A. Paths.get("foo")
B. Paths.getPath("too")
C. Path.get(new URI("file:///domains/oracle/test.txt"))
D. new Path("foo")
E. Paths.get(URL.create("file:///domains/oracle/test.txt"))
Given:

You want to implement the java. Io, serializable interface to the MypersisteneData class. Which method should be overriden?
A. The readExternal and writeExternal method
B. The readExternal method
C. The writeExternal method
D. nothing
Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?
A. m = p * (r * Math.pow(1 + r, n) / (Math.pow(1 + r, n) - 1));
B. m = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) - 1));
C. m = p * r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1;
D. m = p * (r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1);
Given:

Which two constructors will compile and set the class field strings? (Choose two.)

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
You replace the code on line 1 to use ParallelStream.

Which one is correct?
A. The code will produce the same result.
B. The compilation fails.
C. A NoSuchElementException is thrown at run time.
D. The code may produce a different result.
Given the code fragment:

Which two statement inserted independently at line 1 enable this code to print PRRT?
A. i--;
B. continue b;
C. break b;
D. j--;
E. continue a;
F. break a ;
Given the code fragment:

What is the result?
A. 13 5 7 9
B. 1 3 5 7 9 11
C. 2 4 6 B 10
D. 2 4 6 8