单项选择题

阅读下面程序
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.编译不能过

相关试题
  • Java中,可以通过建立java. lang. 【1...
  • Swing中的组件往往采用MVC结构,MVC指的是M...
  • 如果一个线程调用 【15】 ()方法,将...
  • 请将下面的Applet程序补充完整。 import ...
  • 请将下面程序补充完整。 public class P...