Oracle
1Z0-805 · Question #15
1Z0-805 Question #15: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #15. The question stem and answer options stay visible for context.
Question
Given: public static void main(String[] args) throws Exception { try { processFile(); } catch(Exception e) { Throwable [] t = e.getSuppressed(); } } public static void processFile() throws IOException { try (FileReader fr = new FileReader"logfilesrc.txt"); FileWriter fw = new FileWriter("logfiledest.txt")) {{ java.util.zip.ZipFile zf = new java.util.zip.ZipFile("alllogs.zip"); System.out.println("Created files for logs"); Oracle 1Z0-805 Exam } } The getSuppressed method returns an array of __________.
Options
- AAllexceptions that were thrown in the processFile method but were suppressed.
- BExceptions suppressed because that are not declared in the throws clause.
- COnly runtime exceptions that were thrown in the processFile method but were suppressed.
- DOnly runtime exceptions that were thrown in the processFile method but were not declared in throws clause.
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.