90. Given: 11. interface DeclareStuff{ 12. public static final int EASY = 3; 13. void doStuff(int t);} 14. public class TestDeclare implements DeclareStuff{ 15. public static void main(String[] args){ 16. int x = 5; 17. new TestDeclare().doStuff(++x); 18. } 19. void doStuff(int s){ 20. s += EASY + ++s; 21. System.out.println("s " + s); 22. } 23. } What is the result?
(A) s 14
(B) s 16
(C) s 10
(D) Compilation fails.
(E) An exception is thrown at runtime.
(A) s 14
(B) s 16
(C) s 10
(D) Compilation fails.
(E) An exception is thrown at runtime.
答案:登入後查看
統計: A(0), B(1), C(0), D(1), E(0) #2722980
統計: A(0), B(1), C(0), D(1), E(0) #2722980