相关考题
-
多项选择题
class Order implements Runnable { public void run() { try { Thread.sleep(2000); } catch (Exception e) { } System.out.print("in "); } public static void main(String [] args) { Thread t = new Thread(new Order()); t.start(); System.out.print("pre "); try { t.join(); } catch (Exception e) { } System.out.print("post "); } } 可产生哪两项结果?()
A.in pre
B.pre in
C.in pre post
D.pre in post -
多项选择题
下列哪些方法是Thread类中所定义的方法?()
A.yield()
B.sleep(long msec)
C.go()
D.stop() -
多项选择题
现有方法来自于java.lang.Object和java.lang.Thread哪两个方法必须在同步上下文环境中调用()
A.run()
B.join()
C.wait()
D.notify()
