单项选择题
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.
A. 0 B. The result is undefined. C. a D. 2 E. 1 F. c G. b
A. doStuff x = 6 main x = 6 B. Compilation fails. C. doStuff x = 6 main x = 7 D. An exception is thrown at runtime. E. doStuff x = 7 main x = 6 F. doStuff x = 7 main x = 7