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

Java认证考试

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

class MyThread extends Thread {  public void run() { System.out.println(“AAA”); }  public void run(Runnable r) { System.out.println(“BBB”); }  public static void main(String[] args) {  new Thread(new MyThread()).start();  }  }   What is the result?()  

  • A、 AAA
  • B、 BBB
  • C、 Compilation fails.
  • D、 The code runs with no output.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题