中文一二三区_九九在线中文字幕无码_国产一二区av_38激情网_欧美一区=区三区_亚洲高清免费观看在线视频

首頁 > 考試輔導(dǎo) > 計(jì)算機(jī)考試 > JAVA認(rèn)證 > JAVA認(rèn)證試題集錦 > JAVA題庫:格林模擬試題二(下)(4)

JAVA題庫:格林模擬試題二(下)(4)

question 40)which of the following statements are correct?

1) if multiple listeners are added to a component only events for the last listener added will be processed
2) if multiple listeners are added to a component the events will be processed for all but with no guarantee in the order
3) adding multiple listeners to a comnponent will cause a compile time error
4) you may remove as well add listeners to a component.

question 41)given the following code

class base{}
public class mycast extends base{
static boolean b1=false;
static int i = -1;
static double d = 10.1;
public static void main(string argv[]){
mycast m = new mycast();
base b = new base();
//here
}
}


which of the following, if inserted at the comment //here will allow the code to compile and run without error

1) b=m;
2) m=b;
3) d =i;
4) b1 =i;

question 42)which of the following statements about threading are true

1) you can only obtain a mutually exclusive lock on methods in a class that extends thread or implements runnable
2) you can obtain a mutually exclusive lock on any object
3) a thread can obtain a mutually exclusive lock on an object by calling a synchronized method on that object.
4) thread scheduling algorithms are platform dependent

question 43)your chief software designer has shown you a sketch of the new computer parts system she is about to create. at the top of the hierarchy is a class called computer and under this are two child classes. one is called linuxpc and one is called windowspc.

the main difference between the two is that one runs the linux operating system and the other runs the windows system (of course another difference is that one needs constant re-booting and the other runs reliably). under the windowspc are two sub classes one called server and one called workstation. how might you appraise your designers work?


1) give the goahead for further design using the current scheme
2) ask for a re-design of the hierarchy with changing the operating system to a field rather than class type
3) ask for the option of windowspc to be removed as it will soon be obsolete
4) change the hierarchy to remove the need for the superfluous computer class.

主站蜘蛛池模板: 亚洲最大成人综合 | 国产精品第七十二页 | 午夜影院普通用户体验区 | 欧美在线公开视频 | 亚洲视频2 | 一级毛片免费一级 | 九九日视频 | 成人欧美视频在线观看 | 国产乱子伦视频在线观看 | 啪啪激情婷婷久久婷婷色五月 | 黄色免看| 免费观看国产美女裸体视频 | 黄色影院就爱大片网 | 亚洲国产精品日本 | 91精品视频在线免费?看 | 国产成人艳妇aa视频在线 | 在线观看国产丝袜控网站 | 日本中文字幕一区二区有限公司 | 国产精品亚洲专区无码不卡 | 国产女同互慰高潮流水视频 | 日本精品成人一区二区三区视频 | 免费可以在线看A∨网站 | 丰满少妇又爽又紧又丰满在线观看 | 最新国产乱人伦偷精品免费网站 | 成人偷拍片视频在线观看 | 成人亚洲一区无码久久 | 今天高清视频在线观看视频 | 伊人精品在线观看 | 无码精品一区二区三区潘金莲 | 久久久久久噜噜噜久久久精品 | 色悠综合| 无码少妇精品一区二区免费 | av永久免费大全网站 | 9191成人精品久久 | 亚洲国产日韩在线 | 国产黄网网址在线观看 | 亚洲AV色香蕉一区二区蜜桃 | 亚洲乱妇 | 四虎影视免费永久在线 | 91九色精品国产一区二区 | 亚洲精品乱码久久久久久蜜桃动漫 |