试题详情
单项选择题 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
  • 关注下方微信公众号,在线模考后查看

热门试题