"SCJP 1.6版考題 082" 修訂間的差異
出自 陳富國維基館
(新頁面: 11. public interface A111{ 12. String s = "yo"; 13. public void method1(); 14. } 17. interface B{} 20. interface C extends A111, B{ 21. ublic void method1(); 22. public...) |
(無差異)
|
於 2013年3月30日 (六) 06:09 的最新修訂
11. public interface A111{ 12. String s = "yo"; 13. public void method1(); 14. } 17. interface B{} 20. interface C extends A111, B{ 21. ublic void method1(); 22. public void method1(int x); 23. } What is the result? A. Compilation succeeds. B. Compilation fails due to multiple errors. C. Compilation fails due to an error only on line 20. D. Compilation fails due to an error only on line 21. E. Compilation fails due to an error only on line 22. F. Compilation fails due to an error only on line 12.
解答
Ans: A
解說: 介面繼承介面(可多重)
|