考试网 >> IT认证 >> JAVA >> JAVA题库 >> 格林模拟试题二参考答案

格林模拟试题二参考答案

发布时间:2006-06-28 10:52     点击:
分页:上一页  1 2 3 4 5 6 [7] 8 9 10  下一页

4) You may remove as well add listeners to a component.

It ought to be fairly intuitive that a component ought to be able to have multiple listeners. After all, a text field might want to respond to both the mouse and keyboard


Answer 41)

1) b=m;

3) d =i;

You can assign up the inheritance tree from a child to a parent but not the other way without an explicit casting. A boolean can only ever be assigned a boolean value.


Answer 42)

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

Yes that says dependent and not independent.


Answer 43)

2) Ask for a re-design of the hierarchy with changing the Operating System to a field rather than Class type

This question is about the requirement to understand the difference between the "is-a" and the "has-a" relationship. Where a class is inherited you have to ask if it represents the "is-a" relationship. As the difference between the root and the two children are the operating system you need to ask are Linux and Windows types of computers.The answer is no, they are both types of Operating Systems. So option two represents the best of the options. You might consider having operating system as an interface instead but that is another story.


Answer 44)

1) An inner class may be defined as static

4) An inner class may extend another class

分页:上一页  1 2 3 4 5 6 [7] 8 9 10  下一页
版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
发表评论: 匿名发表 用户名: 查看评论
您将承担一切因您的行为、言论而直接或间接导致的民事或刑事法律责任
留言板管理人员有权保留或删除其管辖留言中的任意内容
本站提醒:不要进行人身攻击。谢谢配合。
在本站搜索相关信息
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有