What is the result?

Refer to the Exhibit.

Given:

ClassA a = new ClassA(); a.methodA();

What is the result?

Refer to the Exhibit.

Given:

ClassA a = new ClassA(); a.methodA();

What is the result?

A.
Compilation fails.

B.
ClassC is displayed.

C.
The code runs with no output.

D.
An exception is thrown at runtime.



Leave a Reply 0

Your email address will not be published. Required fields are marked *