欢迎来到易学考试网 易学考试官网
全部科目 > 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.

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题