问题:
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.
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?()
● 参考解析
本题暂无解析