格林模拟试题一(上)(7)
uestion 22)
which statement is true of the following code?
public class agg{agg a = new agg();
}
dsross ds1 = new dsross("one");
}
class dsross extends thread{
dsross(string s){
}
notwait();
}
while(true){
system.out.println("waiting");
}catch(interruptedexception ie){}
notifyall();
}
}
1) it will cause a compile time error
3) compilation and output of "waiting" followed by "finished"
question 23)
class base{
}
public class scope extends base{
}
}
1) void amethod(int i) throws exception {}
3) void amethod(long i){}
编辑推荐:
下载Word文档
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>