多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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 ");  } }  结果为:()

  • A、after join
  • B、after start
  • C、after join after start
  • D、after start after join
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题