题目内容 (请给出正确答案)
[单选题]

如果使用Thread t=new Test()语句创建一个线程,则下列叙述正确的是

A.Test类一定要实现Runnable接口

B.Test类一定是Thread类的子类

C.Test类一定是Runnable的子类

D.Test类一定是继承Thread类并且实现Runnable接口

提问人:网友superjunjun 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有3位网友选择 B,占比18.75%
  • · 有3位网友选择 B,占比18.75%
  • · 有3位网友选择 A,占比18.75%
  • · 有2位网友选择 A,占比12.5%
  • · 有2位网友选择 C,占比12.5%
  • · 有2位网友选择 D,占比12.5%
  • · 有1位网友选择 D,占比6.25%
匿名网友 选择了A
[169.***.***.153] 1天前
匿名网友 选择了B
[60.***.***.64] 1天前
匿名网友 选择了B
[175.***.***.7] 1天前
匿名网友 选择了B
[125.***.***.103] 1天前
匿名网友 选择了A
[132.***.***.147] 1天前
匿名网友 选择了D
[114.***.***.153] 1天前
匿名网友 选择了D
[105.***.***.181] 1天前
匿名网友 选择了A
[114.***.***.12] 1天前
匿名网友 选择了B
[197.***.***.6] 1天前
匿名网友 选择了A
[149.***.***.73] 1天前
匿名网友 选择了D
[105.***.***.150] 1天前
匿名网友 选择了C
[77.***.***.35] 1天前
匿名网友 选择了B
[141.***.***.239] 1天前
匿名网友 选择了C
[153.***.***.51] 1天前
匿名网友 选择了A
[231.***.***.245] 1天前
匿名网友 选择了B
[10.***.***.40] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“如果使用Thread t=new Test()语句创建一个线…”相关的问题
第1题
如果使用Thread t=new Test()语句创建一个线程,则下列叙述正确的是A.Test类一定要实现Runnable接

如果使用Thread t=new Test()语句创建一个线程,则下列叙述正确的是

A.Test类一定要实现Runnable接口

B.Test类一定是Thread类的子类

C.Test类一定是Runnable类的子类

D. Test类一定是继承Thread类,并且实现Runnable接口

点击查看答案
第2题
当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceof Thread的值是【 】。

当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceof Thread的值是【 】。

点击查看答案
第3题
当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceo Thread的值是【 】。

当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceo Thread的值是【 】。

点击查看答案
第4题
当使用SomeThread t=new SomeThread()创建-个线程时,下列叙述中正确的是()。A.Some Thread类

当使用SomeThread t=new SomeThread()创建-个线程时,下列叙述中正确的是()。

A.Some Thread类是包含run()方法的任意Java类

B.Some Thread类-定要实现Runnable接口

C.Some Thread类是Thread类的子类

D.Some Thread类是Thread类的子类并且要实现Run-nable接口

点击查看答案
第5题
当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是()。A.SomeThread类

当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是()。

A.SomeThread类是包含run()方法的任意Java类

B.SomeThread类-定要实现Runnable接口

C.SomeThread类是Thread类的子类

D.SomeThread类是Thread类的子类并且要实现Run-nable接口

点击查看答案
第6题
当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是()。A.SomeThread类是包

当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是()。

A.SomeThread类是包含run()方法的任意Java类

B.SomeThread类一定要实现Runnable接口

C.SomeThread类是Thread类的子类

D.SomeThread类是Thread类的子类并且要实现Runnable接口

点击查看答案
第7题
【单选题】当使用MyThread t=new MyThread()创建一个线程时,下列叙述中正确的是()

A.MyThread类是包含run()方法的任意java类

B.MyThread类一定要实现Runnable接口

C.MyThread类是Thread类的子类并且要实现Runnable接口

D.MyThread类是Thread类的子类

点击查看答案
第8题
阅读下列程序:class ThreadTest extends Thread{public static void main(String[]args){Thread

阅读下列程序:class ThreadTest extends Thread{ public static void main(String[]args){ Thread t=new Thread(this); t.start(); } public void run(){ System.out.print("A thread test."); }} 对该程序而言,正确结论是 ()

A.该程序能够通过编译并打印输出“A thread test.”

B.该程序能够通过编译,但运行时将不调用ThreadTest类中的run()方法,因此不产生任何输出

C.该程序存在编译错误,因为在main()方法中不能使用this指针

D.上述选项都不正确

点击查看答案
第9题
阅读下面程序public class Test implements Runnable{public static void main(String[]args){__

阅读下面程序 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();

点击查看答案
第10题
阅读下面程序public class Test implements Runnable { public static void main(String[] args)

阅读下面程序 public class Test implements Runnable { public static void main(String[] args) { ______ t.start(); } public void run() { System.out.println("Hello!"); } } 程序中下画线处应填入的正确选项是

A.Test t=new Test();

B.Thread t=new Thread();

C.Thread t=new Thread(new Test());

D.Test t=new Thread();

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信