功能测试
首页 > sun认证 > 正文

killtest免费提供最新的SCJP题库下载

发布-admin | 查看- | 发表时间-2010-4-15

SCJP是 Sun推出的一项重要的考试项目。SCJP测验您的Java程序设计概念及能力,内容偏重于Java语法及 JDK的内容,现SCJP题库由KillTest认证题库网资深IT认证讲师和SCJP产品专家结合PROMETRIC或VUE的真实310-065考试环境最新原题倾心打造。题库覆盖了当前最新的真实考题,并且全部附有正确答案。下面是部分的题目:
1. Which two statements are true? (Choose two.)
A. It is possible for more than two threads to deadlock at once.
B. The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
C. Deadlocked threads release once their sleep() method's sleep duration has expired.
D. Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
E. It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
F. If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by insertinginvocations of Thread.yield().
Answer:AF

2. Click the Exhibit button.What is the output if the main() method is run?
A. 4
B. 5
C. 8
D. 9
E. Compilation fails.
F. An exception is thrown at runtime.
G. It is impossible to determine for certain.
Answer: D

3. Given:
1. public class Threads4 {
2. public static void main (String[] args) {
3. new Threads4().go();
4. }
5. public void go() {
6. Runnable r = new Runnable() {
7. public void run() {
8. System.out.print("foo");
9. }
10. };
11. Thread t = new Thread(r);
12. t.start();
13. t.start();
14. }
15. }
What is the result?
A. Compilation fails.
B. An exception is thrown at runtime.
C. The code executes normally and prints "foo".
D. The code executes normally, but nothing is printed.
Answer: B

4. Which Man class properly represents the relationship "Man has a best friend who is a Dog"?
A. class Man extends Dog { }
B. class Man implements Dog { }
C. class Man { private BestFriend dog; }
D. class Man { private Dog bestFriend; }
E. class Man { private Dog<bestFriend>; }
F. class Man { private BestFriend<dog>; }
Answer: D
想要下载更多的SCJP题库资料,你可以到killtest题库网进行下载和咨询!
 

或许你还对下面的文章感兴趣

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章
最近评论
Copyright 2010 killtest.com.cn Some Rights Reserved. 浙ICP备10016241号 | DESIGN BY Seanloo.cn