单项选择题

运行下面程序后,正确的输出结粜是( )。
public class Sun

public static void main(String args[])

int x=6;
if(x>6)
System.out.printin("x>6");
else
if(x<8)
System.out.println("X<8");
else
if(x==6)
System.out.println("x=6");

A.x<8x=6
B.x<8
C.x=6
D.x<8或x=6
<上一题 目录 下一题>
热门 试题

单项选择题
下列关于如下这段代码的说法中正确的是( )。 public class test public static void throwit() throw new RuntimeException(); public static void main(String args[]) try System.out.println(“你好吗”); throwit(); System.out.println(“出错!”); finally System.out.println(“结束”);
A.以上程序段不会编译
B.程序输出“你好吗”,然后有RuntimeException异常发生,输出“出错!”,输出“结束”
C.程序输出“你好吗”,然后有RuntimeException异常发生,然后输出“结束”
D.程序输出“你好吗”,然后输出“结束”,然后有RunthneException异常发生
单项选择题
下列哪一项不是J2ME中的Profile所定义的内容 ( )
A.应用系统的生命周期模型
B.用户界面的特性
C.访问设备的特性
D.使用X.509认证
相关试题
  • 下列Applet在窗口中放置一个按钮,并用这个...
  • 用来填充几何图形的方法是 【14】 。
  • 下面类中,有两个下拉列表,一个可以选择月...
  • Applct生命周期中的关键方法包括:init()...
  • Java中流是一个流动的 【10】 ,数据从...