单项选择题
在Java语言中,一个Applet具有如下init()方法:publicvoidinit(){setLayout(newBorderLayout());add(BorderLayout.EAST,newButton(ClickME!”));}当该Applet载入时,用户外观将是()。
A.没有任何内容
B.居中位置有个按钮
C.左边有个按钮
D.右边有个按钮
E.一个按钮填充整个用户界面上
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
PublicclassHoltextendsThread{PrivateStringsThreadName;Publicstaticvoidmain(Stringargv[]){Holth=newHolt();h.go();Holt(){};Holt(Strings){sThreadName=s;PublicStringgetThreadName(){returnsThreadName;}}Publicvoidgo(){Hotfirst=newHot( first );first.start();Hotsecond=newHot( second );second.start();}Publicvoidstart(){For(inti=0;i<2;i++){System.out.print(getThreadName()+i);Try{Thread.sleep(100);}catch(Exceptione){System.out.print(e.getMessage());}}}}当编译运行上面代码时,将会出现()A.编译时错误B.输出first0,second0,first0,second1C.输出first0,first1,second10,second1D.运行时错误
A.go();Holt(){};Holt(Strings){sThreadName=s;PublicStringgetThreadName(){returnsThreadName;}}Publicvoidgo(){Hotfirst=newHot("first");first.start();Hotsecond=newHot("second");second.start();}Publicvoidstart(){For(inti=0;i<2;i++){System.out.print(getThreadName()+i);Try{Thread.sleep(100);}catch(Exceptione){System.out.print(e.getMessage());}}}}当编译运行上面代码时,将会出现()
A.编译时错误
B.输出first0,second0,first0,second1
C.输出first0,first1,second10,second1
D.运行时错误
点击查看答案&解析
问答题
网络体系结构为什么分层,简述TCP IP分层模型中各层功能。
点击查看答案
相关试题
通过Oracle SQL Developer可完成的DBA操...
下列针对linux维护操作过程中,配置文件说...
下列关于oracle数据库角色以及权限控制说法...
下列不属于DataGuard 优点的是()。
Jenkins基于DOCKER的安装要求必须安装如下...