单项选择题
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
相关考题
-
多项选择题
Given: Which three methods, inserted individually at line 14, will correctly complete class Two?()
A.int foo() { /* more code here */ }
B.void foo() { /* more code here */ }
C.public void foo() { /* more code here */ }
D.private void foo() { /* more code here */ }
E.protected void foo() { /* more code here */ } -
单项选择题
Given:10. interface Data { public void load(); }11. abstract class Info { public abstract void load(); }Which class correctly uses the Data interface and Info class?()()
A.
B.
C.
D.
E.
F. -
单项选择题
Given: Which code, inserted at line 14, allows the Sprite class to compile?()
A.Direction d = NORTH;
B.Nav.Direction d = NORTH;
C.Direction d = Direction.NORTH;
D.Nav.Direction d = Nav.Direction.NORTH;
