单项选择题
下列程序段的输出是( )。
public class Test
public static void main (String args[ ])
String ss1 = new String("hello");
String ss2 = new String("hello");
System. out. println(ssl == ss2);
System. out. println (ss1. equals(ss2));
A.true, false
B.true, true
C.false, true
D.false, false
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序段执行后,变量c的值为( )。 public class Test public static void main(String[ ] args) float a=10, b=9, c=8; if (--a==B) c= --a c; System. out. println (c) ;
A.1.125
B.1.0
C.1.25
D.0.0
点击查看答案&解析
单项选择题
当浏览器重新返回Applet所在页面时,将调用Applet类的( )方法。
A.start( )
B.init( )
C.stop( )
D.destroy( )
点击查看答案&解析
相关试题
在Java中,将程序里出现的对象保存在外存中...
Java中的对象锁是一种独占的 【12】 锁...
Applet类中用于返回包含Applet的HTML文件UR...
CardLayout布局管理器可以使多个构件共享同...
多线程程序设计的含义是可以将一个程序任务...