格林模拟试题二参考答案

来源:java认证发布时间:2012-11-12 12:47:44java认证视频

 

answer 37)

4) -3.0


answer 38)

3) one

command line parameters start from 0 and from the first parameter after the name of the compile (normally java)


answer 39)

4) the set is designed for unique elements.

collection is an interface, not a class. the collection interface includes a method called iterator. this returns an instance of the iterator class which has some similarities with enumerators.
the name set should give away the purpose of the set interface as it is analogous to the set concept in relational databases which implies uniquness.


answer 40)

2) if multiple listeners are added to a component the events will be processed for all but with no guarantee in the order
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.

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答