Oracle
1Z0-804 · Question #51
Given the code fragment: What is the result, if the file salesreport.dat does not exist?
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #51. The question stem and answer options stay visible for context.
Java I/O Fundamentals
Question
Given the code fragment:
What is the result, if the file salesreport.dat does not exist?
Exhibit
Options
- ACompilation fails only at line 6
- BCompilation fails only at line 13
- CCompilation fails at line 6 and 13
- DClass java.io.IOException
- EClass java.io.FileNotFoundException
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#FileInputStream#IOException#checked exception#compilation
