当使用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题:
当使用SomeThread t=new SomeThread创建一个线程时,下列叙述中正确的是( )。
A.SomeThread类是包含run方法的任意Java类
B.SomeThread类一定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Runnable接口
第3题:
下列关于Java线程的说法哪些是正确的?()
A.每一个Java线程可以看成由代码、一个真实的CPU以及数据3部分组成
B.创建线程的两种方法,从Thread类中继承的创建方式可以防止出现多父类问题
C.Thread类属于java.util程序包
D.以上说法无一正确
第4题:
下列关于new运算符的描述中错误的是
A.使用运算符new创建对象数组时必须定义初始值
B.使用运算符new创建对象时,会调用类的构造函数
C.运算符new可以用来动态创建对象和对象数组
D.使用new运算符创建的对象可以使用运算符delete删除
第5题:
( 29 )当使用 SomeThread t=new SomeThread() 创建一个线程时,下列叙述中正确的是
A ) SomeThread 类是包含 run() 方法的任意 java 类
B ) SomeThread 类一定要实现 Runnable 接口
C ) SomeThread 类是 Thread 类的子类
D ) SomeThread 类是 Thread 类的子类并且要实现 Runnable 接口