Predict the output of the following Java program. (a) Exception 2 (b) Exception 0 (c) Compilation Error

Question:

Predict the output of the following Java program.class Test { public static void main (String args[]) { try { } M throw 2; } catch (int e) {

(a) Exception 2

(b) Exception 0

(c) Compilation Error

(d) None of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: