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

Java认证考试

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

public void testIfA(){ if(testIfB("True")){ System.out.println("True"); }else{ System.out.println("Nottrue"); } } public Boolean testIfB(Stringstr){ return Boolean.valueOf(str); } What is the result when method testIfA is invoked?()

  • A、True
  • B、Nottrue
  • C、Anexceptionisthrownatruntime.
  • D、Compilationfailsbecauseofanerroratline12.
  • E、Compilationfailsbecauseofanerroratline19.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题