首页 相关文章 Test of the Java Skill(4)

Test of the Java Skill(4)


     Question 25:
     What will happen when you attempt to compile and run the following code?
  
     int Output = 10;
     boolean b1 = false;
     if ((b1==true)&&((Output+=10)==20)){
     System.out.println(“We are equal “ + Output);
     }
     else{
     System.out.println(“Not equal!” + Output);
     }
  
     A. Compile error, attempting to perform binary comparison on logical data type
  
     B. Compilation and output of “We are equal 10”
  
     C...[ 查看全文 ]

2016-02-19 标签:

Test of the Java Skill(4)的相关文章

手机页面
收藏网站 回到头部