欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

public class Test { 
public static void main(String [] args) { 
int x =5; 
boolean b1 = true; 
boolean b2 = false; 
if((x==4) && !b2) 
System.out.print(”l “); 
System.out.print(”2 “); 
if ((b2 = true) && b1) 
System.out.print(”3 “); 
}
} 
What is the result?() 

    A. 2
    B. 3
    C. 1 2
    D. 2 3
    E. 1 2 3
    F. Compilation fails.
    G. Au exceptional is thrown at runtime.

点击查看答案&解析

相关考题

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

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