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
答案解析:有
微信扫一扫手机做题