black

Java认证考试综合练习

登录

单项选择题

程序: 
class   TestApp{ 
public  static  void main (String[]  args){     int x=6;     if (x>l) 
System. out. println("x>l");     else if (x>5) 
System. out .println("x>5");     else if (x<10) 
System. out. println("xSystem. out .println( "x<29");     else 
System. out.println(“以上都不是”);     }     } 
上述程序运行后的结果是哪项?()     

 

A.x>5
B.x>l
C.x<10
D.x<29

相关考题

单项选择题 现有:     class TestApp{  public  static  void main (String[]  args){      for (int  i=0; iif(i==3)      break;  System. out .print (i);     }     }     }  程序运行后的输出是哪项?()

单项选择题 现有:  class  Test4  {  public static void main (String  []  args)  {    boolean X=true;   boolean y=false;    short Z=42;    if((z++==42)  &&  (y=true))z++;    if((x=false)  ||    (++z==45))  z++;    System. out.println(¨z=”+z);     }    }  结果为:()

单项选择题 基本数据类型float的包裹类是哪项?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064