当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是
A.SomeThread类是包含run()方法的任意Java类
B.SomeThread类一定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Runnable接口
第1题:
当使用SomeThread t=new SomeThread( )创建一个线程时,下列叙述中正确的是( )。
A.SomeThread类是包含run( )方法的任意Java类
B.SomeThread类-定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Run-nable接口
第2题:
下列说法中,错误的一项是______。
A.一个线程组中可以包含若干线程
B.一个Java应用程序启动时,Java运行系统为该程序创建一个名为main的线程
C.一个线程组中不可以再包含线程组
D.一个Java应用程序的最顶层线程组是main
第3题:
( 29 )当使用 SomeThread t=new SomeThread() 创建一个线程时,下列叙述中正确的是
A ) SomeThread 类是包含 run() 方法的任意 java 类
B ) SomeThread 类一定要实现 Runnable 接口
C ) SomeThread 类是 Thread 类的子类
D ) SomeThread 类是 Thread 类的子类并且要实现 Runnable 接口
第4题:
下列关于new运算符的描述中错误的是
A.使用运算符new创建对象数组时必须定义初始值
B.使用运算符new创建对象时,会调用类的构造函数
C.运算符new可以用来动态创建对象和对象数组
D.使用new运算符创建的对象可以使用运算符delete删除
第5题:
当使用SomeThread t=new SomeThread创建一个线程时,下列叙述中正确的是( )。
A.SomeThread类是包含run方法的任意Java类
B.SomeThread类一定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Runnable接口