单项选择题
下列选项中可以创建一个标识有“关闭”的按钮语句的是( )。
A.TextField b = new TextField("关闭");
B.TextArea b=new TextArea("关闭");
C.Button b = new Button("关闭");
D.Checkbox b = new Checkbox("关闭");
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列循环的循环体将被执行( )。 int x =10, y=30; dot y -= x; x++; while (x++>y--);
下列循环的循环体将被执行( )。
int x =10, y=30;
dot
y -= x;
x++;
while (x++>y--);
点击查看答案&解析
单项选择题
运行下面的程序时,会产生( )。 public class Test public static void main(String args[ ] ) int x =0; int y = 2 x; int z[ ] = 1,2,4,6; int p=z[4];
A.ArrayIndexOutOfBoundsExcePtion异常
B.NumberFormatException异常
C.ArithmeticException异常
D.ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常
点击查看答案&解析
相关试题
在退出当前主页时,浏览器调用 【15】 ...
能将显示空间分成很多层的布局管理器是 【...
Swing的顶层容器有:Japplet, JWindow,...
【12】 可以把一组线程作为一个对象进行...
字符类输出流的各个类都是抽象类 【11】...