单项选择题
Given: What is the result?()
A.2 B.3 C.4 D.6 E.7 F.Compilation fails.
Given: Which code, inserted at line 15, allows the class Sprite to compile?()
A.Foo { public int bar() { return 1; } B.new Foo { public int bar() { return 1; } C.new Foo() { public int bar() { return 1; } D.new class Foo { public int bar() { return 1; }
A. B. C. D.
Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()
A.Compilation will succeed for all classes and interfaces. B.Compilation of class C will fail because of an error in line 2. C.Compilation of class C will fail because of an error in line 6. D.Compilation of class AImpl will fail because of an error in line 2.
微信扫一扫,加关注免费搜题