多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

10. public class ClassA {  11. public void count(int i) {  12. count(++i);  13. }  14. }  And:  20. ClassA a = new ClassA();  21. a.count(3);  Which exception or error should be thrown by the virtual machine?() 

  • A、 StackOverflowError
  • B、 NullPointerException
  • C、 NumberFormatException
  • D、 IllegalArgumentException
  • E、 ExceptionlnlnitializerError
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题