black

Java认证考试综合练习

登录

多项选择题

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类中所定义的方法?()

多项选择题 现有方法来自于java.lang.Object和java.lang.Thread哪两个方法必须在同步上下文环境中调用()

多项选择题 现有如下包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  class Test { Alpha a; Beta b; Gamma c; }  哪三个必须加入到类 Test 中,以使其通过编译?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3