

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?public class Arithmetic_Exception { public static void main(String args[]) { try { int p = args.length; int q = 11 / p; System.out.print(p); } catch (ArithmeticException e) { System.out.println("First"); } } } |
A. | Compilation Error |
B. | Runtime Error |
C. | First |
D. | 11 |
E. | None of these |
Answer» D. 11 | |