

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class exception_handling { public static void main(String args[]) { try { System.out.print("Hello" + " " + 1 / 0); } catch(ArithmeticException e) { System.out.print("World"); } } } |
A. | Hello |
B. | World |
C. | HelloWorld |
D. | Hello World |
Answer» C. HelloWorld | |