Question: class A { public static void main (String [] args ) { 4 Error error = new Error(); Exception exception = new Exception (); System.out.print((exception

class A {

public static void main (String [] args ) { 4 Error error = new Error();

Exception exception = new Exception ();

System.out.print((exception instanceof Throwable) + \",\");

System.out.print(error instanceof Throwable);

} 9 }

What is the result of attempting to compile and run the program? Choose

a. Prints: false, false

b. Prints: false, true

c. Prints: true, false

d. Prints: true, true

e. Compile-time error

f. Run-time error

g. None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!