单选题Click the Exhibit button.   Given: ClassA a = new ClassA();   a.methodA();   What is the result?()AThe code runs with no output.BCompilation fails.CAn exception is thrown at runtime.DClassC is displayed.

题目
单选题
Click the Exhibit button.   Given: ClassA a = new ClassA();   a.methodA();   What is the result?()
A

 The code runs with no output.

B

 Compilation fails.

C

 An exception is thrown at runtime.

D

 ClassC is displayed.


相似考题