可学答题网 > 问答 > Java认证考试综合练习题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

class Work implements 


class Work implements Runnable {  Thread other;   Work(Thread other) { this.other = other; }  public void run() {  try { other.join(); } catch (Exception e) { }  System.out.print("after join ");  } }  class Launch {  public static void main(String [] args) {  new Thread(new Work(Thread.currentThread())).start();  System.out.print("after start ");  } }  结果为:()

  • Aafter join
  • Bafter start
  • Cafter join after start
  • Dafter start after joi
参考答案
参考解析:
分类:Java认证考试综合练习题库
相关推荐

1、class Order3 implements&ens

class Order3 implements Runnable { public static void main(String [] args) { new Thread(new ...

2、class Waiting implements&en

class Waiting implements Runnable { boolean flag = false; public synchronized void run() { i...

3、1. class A implements&

1. class A implements Runnable ( 2. int i; 3. public void run () ( 4. try (&ensp...

4、class Car implements S

class Car implements Serializable { }  class Ford extends Car { }  如果试图序列化一个Ford实...

5、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

6、class Thread2 implements&en

class Thread2 implements Runnable {  void run() {   System.out.print("go ");   }&ensp...