单项选择题
Given: What is the result?()
A.2 B.3 C.4 D.6 E.7
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 */ }
微信扫一扫,加关注免费搜题