Oracle
1Z0-805 · Question #55
1Z0-805 Question #55: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #55. The question stem and answer options stay visible for context.
Question
Given the code fragment: public void processFile() throws IOException, ClassNotFoundException { try (FileReader fr = new FileReader ("logfilesrc.txt"); FileWriter fw = new FileWriter ("logfiledest.txt")) { Class c = Class.forName ("java.lang.JString"); } } If exception occur when closing the FileWriter object and when retrieving the JString class object, which exception object is thrown to the caller of the processFile method?
Options
- Ajava.io.IOException
- Bjava.lang.Exception
- Cjava.lang.ClassNotException
- Djava.lang.NoSuchClassException
Unlock 1Z0-805 to see the answer
You've previewed enough free 1Z0-805 questions. Unlock 1Z0-805 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.