Question 46
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?
Question 47
Given the code fragment:
What is the result?
Question 48
Given:
If file "App.config" is not found, what is the result?
Question 49
Given:
What is the result?
Question 50
Given:
And the command:
java Main Helloworld
What is the result ?




