首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序 public class Test2 ______ { public static void main(String[] args) { Thread t=new Test2(); t.start();
阅读下面程序 public class Test2 ______ { public static void main(String[] args) { Thread t=new Test2(); t.start();
admin
2012-03-21
48
问题
阅读下面程序 public class Test2 ______ { public static void main(String[] args) { Thread t=new Test2(); t.start(); } public void run() { System.out.println("How are you."); } } 程序中下画线处应填入的正确选项是
选项
A、implements Thread
B、extends Runnable
C、implements Runnable
D、extends Thread
答案
D
解析
转载请注明原文地址:https://kaotiyun.com/show/162p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下面代码的输出结果是x=10y=3print(divmod(x,y))
使用turtle库绘制同心圆图形,效果如下图所示。阅读程序框架.补充横线处代码。(①)defDrawCctCircle(n):t.penup()t.goto(0,一n)t.pendown()(②)foriinrange(20,100
ls是一个列表,内容如下:ls=[123,’’456’’,789,’’123’’,456,’’789’’]请补充如下代码,使用remove()方法,采用一行语句,删除元素789。ls=[123,’’456’’,789,’’123’’,456,’’78
s=’’9e10’’是一个浮点数形式字符串,即包含小数点或采用科学计数法形式表示的字符串,编写程序判断s是否是浮点数形式字符串。如果是则输出True,否则输出False。
以下选项中不是文件操作函数或方法的是
Python语句:f=open(),以下选项中对f的描述错误的是
给定列表ls=[1,2,3,”1”,”2”,”3”],其元素包含两种数据类型,列表ls的数据组织维度是()。
树的度为3,且有9个度为3的结点,5个度为1的结点,但没有度为2的结点。则该树中的叶子结点数为()。
在面向对象方法中,不属于”对象”基本特点的是()。
树的度为3,且有9个度为3的节点,5个度为1的节点,但没有度为2的节点。则该树中的叶子节点数为()。
随机试题
A.阻遏蛋白结合位点B.激活蛋白CAP结合位点C.两者皆有D.两者皆无大肠埃希菌乳糖操纵子有
李一、李二外出游玩,向李三借进口相机一部。回来天色已晚,李一遂将相机带回家,打算第二天再还。当晚,李四到李一家做客,见此相机,爱不释手,定要以3000元买下,李一见财起意,遂卖之。数日后,李四手头钱紧,向李二以2000元兜售该相机。李二见此相机,甚为眼熟,
商业银行通过同业拆借拆人的资金可以用于哪些用途?
甲向区公安局报案控告乙将其价值10万元的名画盗窃。区公安局以没有证据证明是乙所为不予立案,并发出了不予立案通知书,如果甲不服,他的下述哪些行为符合法律规定?()
一般规定,在自然养护时,对火山灰水泥、粉煤灰水泥、掺有缓凝型外加剂的混凝土,浇水保湿养护日期不得少于()。
货币市场是指专门融通()以内短期资金的场所。
A注册会计师负责审计甲公司2×10年度财务报表,在对销售与收款循环进行审计的过程中,遇到下列问题,请代为做出正确的专业判断。下列关于A注册会计师在应收账款函证中的处理,恰当的是()。
民警罗某于2013年1月3日中午巡逻下班后开着警车回家,因无处停车,就将警车停靠在自家小区附近的禁停路段,后被某市民悄悄贴上手写的“违法行为告知书”,样式非常类似于交警开具的罚单。网民张某用照相机将这一幕拍下来,并上传到微博,引起网民热议。这份
党的十八大指出,中国将继续高举和平、发展、合作、共赢的旗帜,始终不渝地走和平发展道路,坚定奉行独立自主的和平外交政策,始终不渝奉行互利共赢的开放战略,通过深化合作促进世界经济强劲、可持续、平衡增长。我国对外政策的主要目标是
Whereistheman?
最新回复
(
0
)