JAVA题库:格林模拟试题二(下)(8)

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

 
question 55)
which of the following are methods of the thread class?
1) yield()
2) sleep(long msec)
3) go()
4) stop()



question 56)
which of the following methods are members of the vector class and allow you to input a new element
1) addelement
2) insert
3) append
4) additem



question 57)
which of the following statements are true?
1) adding more classes via import statements will cause a performance overhead, only import classes you actually use.
2) under no circumstances can a class be defined with the private modifier
3) a inner class may under some circumstances be defined with the protected modifier
4) an interface cannot be instantiated



question 58)
which of the following are correct event handling methods
1) mousepressed(mouseevent e){}
2) mousepressed(mouseclick e){}
3) functionkey(keypress k){}
4) componentadded(containerevent e){}



question 59)
which of the following are methods of the collection interface?
1) iterator
2) isempty
3) toarray
4) settext



question 60)
which of the following best describes the use of the synchronized keyword?
1) allows two process to run in paralell but to communicate with each other
2) ensures only one thread at a time may access a method or object
3) ensures that two or more processes will start and end at the same time
4) ensures that two or more threads will start and end at the same time

视频学习

我考网版权与免责声明

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

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

最近更新

社区交流

考试问答