单项选择题

下列选项中哪个方法可以判断线程是否处于活动状态 ( )

A.blooean is Alive()
B.Thread currentThread()
C.String getName()
D.static boolean interrupted()
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果是 ( ) Public class fff void printValue(int m) doSystem.out.println( The value is +m); whilE(--m>10) public static void main(String arg[]) int i=10; Test t=new Test(); t.printValue(i);
A.8
B.9
C.10
D.11
单项选择题
已知有下列类的说明,则下列哪个语句是正确的 ( ) public class Test private float f=1.0f; int m=2; static int n=1; public static void main(String arg[]) Test t=new Test();
A.f;
B.this,n;
C.Test.m;
D.Test.f;
相关试题
  • 顺序执行下列两个语句的输出结果是____...
  • Java中访问限定符有______ ,protec...
  • setLayout()方法是所有容器的父类 __...
  • ______ 类是提供线程操作和管理的类。
  • 设x=2,则表达式(x++)*3的值是 _...