单项选择题

阅读下面程序
public class Test2______ {
public static void main(String[] args){
Thread t=new Test2();
t. start();
}
public void run(){
System. out. priatln("How are you. ");
}
}
在程序下画线处填入的正确的选项是()

A.implements Thread
B.extends Runnable
C.implements Runnable
D.extends Thread

<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面求质数的程序 import java. lang. Math. * ; public class MorePrimesTest{ public static void main(String[]args){ long[]primes=new long[20]; primes[0]2L; primes[1]3L; long number=5L; outer: for(int count=2; count<primes. length; number+ =2L){ long limit=(long)Math. ceil(Math. sqrt((double)number)); for(int i=1; i<count && primes[i]<limit; i+ +){ if(number______primes[i]==0L){ cotinue outer; } } for(int j=0; j<primes. length; j ++){ long n=primes[j]; System. out. println(n); } } } 在程序下画线处填入的正确选项是()

A.&
B.*
C./
D.%

单项选择题
阅读下面程序 public class My Val{ public static void main(String args[]){ My Val m=new My Val(); m. amethod(); } public void amethod(){ boolean b[]=new Boolean[5]; } } 程序编译或运行结果是()

A.1
B.null
C." "
D.编译不能过

相关试题
  • 阅读下面实现堆栈类并发控制的部分代码 pu...
  • 阅读下面Applet程序 import javax. swi...
  • 阅读下面程序 public class Test imple...
  • 阅读下面写文件的程序 import java. io...