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.
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.