Exception Handling
© examsiri.com
Question : 5 of 24
Marks:
+1,
-0
Given:
What is the result?
1. static void test() throws Error {
2.   if (true) throw new AssertionError();
3.   System.out.print("test ");
4. }
5. public static void main(String[] args) {
6.   try { test(); }
7. catch (Exception ex) { System.out.print("exception "); }
8. System.out.print("end ");
9. }What is the result?
Go to Question: