ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

91 / 130

Question 91:

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: 
image
What is the result? 

Answer options:

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.