ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

23 / 130

Question 23:

Assuming that the file /data/december/log.txt does not exist and given the code fragment: 
image
What is the result? 

Answer options:

A. A file with the name log.txt is created in the /data directory and the content of the /data/december/log.txt file is copied to it.
B. The program executes successfully and does NOT change the file system.
C. A FileNotFoundException is thrown at run time.
D. A NoSuchFileException is thrown at run time.