多项选择题X 纠错
A.String s = "john" + " was " + " here";
B.String s = "john" + 3;
C.int a = 3 + 5;
D.int a = 5 + 5.5;
你可能喜欢
单项选择题
A.编译时错误
B.输出first0, second0, first0, second1
C.输出first0, first1, second0, second1
D.运行时错误
多项选择题
A.i=0 j=3
B.i=0 j=0
C.i=2 j=2
D.i=0 j=2
E.i=1 j=2
多项选择题
A.该代码画了一个按钮
B.Button("ok")创建一个有显示"ok"的按钮
C.Button()是构造函数
D.按钮属于容器
多项选择题
A.image是要绘制的图像
B.x,y是表示图像的中心的位置
C.width是源图像的宽度
D.this是容器
单项选择题
A.if ( i > 10 ) throw Exception(“something’s wrong!”);
B.if ( i > 10 ) throw Exception e (“something’s wrong!”);
C.if ( i > 10 ) throw new Exception(“something’s wrong!”);
D.if ( i > 10 ) throw new Exception e ("something’s wrong!");
单项选择题
A.若用户从applet运行的页移动到其它页,stop()方法就会停止第一页中的applet
B.若用户从applet运行的页移动到其它页,stop()方法不会停止第一页中的applet
C.使用destroy()方法可将applet从内存中永久删除
D.destroy()方法可以删除运行的applet所有使用的资源
多项选择题
A.FlowLayout以由上到下的方式从左到右排列组件
B.BorderLayout使用”东”、”西”、”南”、”北”,”居中”来指定组件的位置
C.GridLayout提供了类似于选项卡式的对话框的功能
D.CardLayout是最灵活的布局方案