单项选择题下面程序段的输出结果是______。 public class Test public static void main(String args[]) int x,y; x=(int) Math.sqrt(5 2)+(int) Math.random()*5 2; y=(int) Math.sqrt(3 2)+(int) Math.random()*3 2; if(x>y) System.out.println( x>y ); else if(x==y) System.out.println( x=y ); else System.out.println( x<y );
单项选择题Java中对Applet设置了严格的安全限制。下列关于Applet在Java2中的安全限制叙述正确的是( )。
单项选择题给出下面代码段,x处于( )范围时打印字符串“second”。 pubhc class forLoopStatement public static voidmain(String[]args) int x=______; 给x赋值 if(x>0) System.out.println( second ); else if(x>-3) System.out.println( second ); else System.out.printlnCthird );
单项选择题Java语言的各种数据类型之间提供自动转换,如第1操作数是char类型,第2操作数是 int类型,其结果是( )。
单项选择题Swing中要响应动作事件必须实现ActionListener接口,而实现ActionListenrer接口必须实现的方法是 ( )。
单项选择题下列各项中,不属于多媒体硬件的是( )。
单项选择题下面选项中不属于简单数据类型的是( )。
单项选择题以下数据结构中不属于线性数据结构的是( )。
单项选择题设执行下面的赋值语句:
单项选择题在Java中,表示换行符的转义字符是( )。