首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ __________________
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ __________________
admin
2009-08-24
19
问题
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
选项
A、Test t=flew Test()
B、Thread t=new Thread();
C、Thread t=new Thread(new Test());
D、Test t=new Thread();
答案
C
解析
根据t. start()可知t应该是一个Thread类,排除A)。Thread类与Test类之间没有继承关系,所以排除D)。B)没有指定创建线程的对象,因此t. start()语句不能使Test类的run方法运行。所以选C)。
转载请注明原文地址:https://kaotiyun.com/show/P0np777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下面描述中,不属于软件危机表现的是
下面程序的运行结果是:SETTALKOFFn=1DOproclWITH(n)?n+2PROCEDUREproc1PARAMETERSnFORk=2TO4n=
查询“读者”表的所有记录并存储于临时表文件one中的SQL语句是
在VisualFoxPro中,假设表单上有一选项组:○男⊙女,初始时该选项组的Value属性值为1。若选项按钮“女”被选中,该选项组的Value属性值是
下列链表中,其逻辑结构属于非线性结构的是
在考生文件夹下,打开学生数据库sdb,完成如下简单应用:(1)使用报表向导建立一个简单报表。要求选择student表中所有字段;记录不分组;报表样式为“随意式”;列数为“1”,字段布局为“列”,方向为“纵向”;排序字段为“学号”(升序);报表标题为“学生
在VisualFoxPro中,要运行查询文件Student.qpr,可以使用命令()。
以下关于二进制整数的定义,正确的是()。
请完成下列Java程序:用树构件展示计算机等级考试二级的简单目录组织结构,包含三级目录,第一级是根目录(计算机二级);第二级包含2个目录,一个是c++,一个是java;c++目录中,只有一项就是简介,而java目录中包含三项,一个简介,一个大纲,一个第三级
随机试题
下列画家中,属于印象派画家的是【】
在等容舒张期,心脏瓣膜的状态是【】
24小时尿量少于多少称为无尿
跛行诊断中确诊患部的主要方法可能是()。
期货交易实行保证金制度,交易者不需要付出与合约金额相等的全额货款,只需要付()的履约保证金。
账务处理程序就是指记账程序。()
投资者必须在证券交易所设立账户,才能买卖的国债是()。
贯彻“以人为本”的教育理念首先应该做到()。
如果把一杯酒倒进一桶污水中,你得到的是一桶污水;如果把一杯污水倒进一桶酒中,你得到的仍然是一桶污水。在任何组织中,都有可能存在几个难缠人物,他们存在的目的似乎就是把事情搞糟。如果一个组织不加强内部管理,一个正直能干的人进入某低效的部门就会被吞没,而一个无德
中国精神之所以是兴国强国之魂,是因为()
最新回复
(
0
)