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

Java认证考试

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

Given that Triangle implements Runnable, and: Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads to temporarily pause and allow the other thread to execute?()

  • A、Thread.wait();
  • B、Thread.join();
  • C、Thread.yield();
  • D、Thread.sleep(1);
  • E、Thread.notify();
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题