問題詳情

第29題Given:SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版151. public class A{2. public void doit(){3. }4. public String doit(){5. return "a";6. }7. public double doit(int x){8. return 1.0;9. }10. }What is the result?
(A) An exception is thrown at runtime.
(B) Compilation fails because of an error in line 7.
(C) Compilation fails because of an error in line 4.
(D) Compilation succeeds and no runtime errors with class A occur.

參考答案

答案:C
難度:適中0.527027
統計:A(15),B(37),C(78),D(14),E(0)