Given: What is the result?()
A.Compilation succeeds. B.Exactly one class does NOT compile. C.Exactly two classes do NOT compile. D.Exactly four classes do NOT compile. E.Exactly three classes do NOT compile.
单项选择题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;
单项选择题Given: Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A.Point p = new Point(); B.Line.Point p = new Line.Point(); C.The Point class cannot be instatiated at line 15. D.Line l = new Line() ; l.Point p = new l.Point();