免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2473 | 回复: 3

最新 SCJP 310-055题库(由test-passport提供) [复制链接]

论坛徽章:
0
发表于 2010-04-01 11:18 |显示全部楼层
<p align="center"><p align="center"> </p></p><p align="center"><p align="center"> </p></p>Test-passport <br />SCJP 310-055题库由资深IT认证讲师和SCJP产品专家结合PROMETRIC或VUE的真实考试环境最新原题倾心打造..,题库覆盖了当前最新的真实考题,并且全部附有正确答案。<br /><p align="left"><p align="left">认证编号: Sun Certified Programmer for the Java 2 Platform.SE 5.0</p></p><p align="left"><p align="left">考题数量: 240 Q&amp;As </p></p><p align="left"><p align="left">更新: Mar-16-2010</p></p>最近在网上看到很多的人都在找这门题库,我今天先发一门,希望对大家有帮助,想要完整版的请留下你的邮箱!反应好的话还有一门也会发出来的!!!!!!!!!!!<br /><p align="left"><p align="left">1.Which Man class properly represents the relationship &quot;Man has a best friend who is a Dog&quot;?</p></p><p align="left"><p align="left">A.class Man extends Dog { }</p></p><p align="left"><p align="left">B.class Man implements Dog { }</p></p><p align="left"><p align="left">C.class Man { private BestFriend dog; }</p></p><p align="left"><p align="left">D.class Man { private Dog bestFriend; }</p></p><p align="left"><p align="left">E.class Man { private Dog; }</p></p><p align="left"><p align="left">F.class Man { private BestFriend; }</p></p><p align="left"><p align="left">Answer<img src="http://bbs.chinaitlab.com/images/smilies/default/biggrin.gif" smilieid="3" border="0" alt="" /></p></p><p align="left"><p align="left">2.Given: 1. package test; 2. 3. class Target { 4. public String name = &quot;hello&quot;; 5. } What can directly access</p></p><p align="left"><p align="left">and change the value of the variable name?</p></p><p align="left"><p align="left">A.any class</p></p><p align="left"><p align="left">B.only the Target class</p></p><p align="left"><p align="left">C.any class in the test package</p></p><p align="left"><p align="left">D.any class that extends Target</p></p><p align="left"><p align="left">Answer:C</p></p><p align="left"><p align="left">3.Click the Task button.</p></p><p align="left"><p align="left">Answer:</p></p><p align="left"><p align="left">Green choice1----&gt;Yellow Choice1</p></p><p align="left"><p align="left">Green choice2----&gt;Yellow Choice2</p></p><p align="left"><p align="left">Green choice3----&gt;Yellow Choice3</p></p><p align="left"><p align="left">Green choice2----&gt;Yellow Choice5</p></p><p align="left"><p align="left">Green choice5----&gt;Yellow Choice6</p></p><p align="left"><p align="left">Green choice1----&gt;Yellow Choice4</p></p><p align="left"><p align="left">4.Given: 1. class ClassA { 2. public int numberOfInstances; 3. protected ClassA(int numberOfInstances)</p></p><p align="left"><p align="left">{ 4. this.numberOfInstances = numberOfInstances; 5. } 6. } 7. public class ExtendedA extends ClassA { 8.</p></p><p align="left"><p align="left">private ExtendedA(int numberOfInstances) { 9. super(numberOfInstances); 10. } 11. public static void</p></p><p align="left"><p align="left">main(String[] args) { 12. ExtendedA ext = new ExtendedA(420); 13.</p></p><p align="left"><p align="left">System.out.print(ext.numberOfInstances); 14. } 15. } Which statement is true?</p></p><p align="left"><p align="left">A.420 is the output.</p></p><p align="left"><p align="left">The safer , easier way to help you pass any IT exams.</p></p><p align="left"><p align="left">3 / 12</p></p><p align="left"><p align="left">B.An exception is thrown at runtime.</p></p><p align="left"><p align="left">C.All constructors must be declared public.</p></p><p align="left"><p align="left">D.Constructors CANNOT use the private modifier.</p></p><p align="left"><p align="left">E.Constructors CANNOT use the protected modifier.</p></p><p align="left"><p align="left">Answer:A</p></p><p align="left"><p align="left">5.Given: 10. interface Jumper { public void jump(); } ... 20. class Animal {} ... 30. class Dog extends Animal</p></p><p align="left"><p align="left">{ 31. Tail tail; 32. } ... 40. class Beagle extends Dog implements Jumper{ 41. public void jump() {} 42. } ...</p></p><p align="left"><p align="left">50. class Cat implements Jumper{ 51. public void jump() {} 52. } Which three are true? (Choose three.)</p></p><p align="left"><p align="left">A.Cat is-a Animal</p></p><p align="left"><p align="left">B.Cat is-a Jumper</p></p><p align="left"><p align="left">C.Dog is-a Animal</p></p><p align="left"><p align="left">D.Dog is-a Jumper</p></p><p align="left"><p align="left">E.Cat has-a Animal</p></p><p align="left"><p align="left">F.Beagle has-a Tail</p></p><p align="left"><p align="left">G.Beagle has-a Jumper</p></p><p align="left"><p align="left">Answer:B C F</p></p><p align="left"><p align="left">6.Given: 10: public class Hello { 11: String title; 12: int value; 13: public Hello() { 14: title += &quot; World&quot;; 15: }</p></p><p align="left"><p align="left">16: public Hello(int value) { 17: this.value = value; 18: title = &quot;Hello&quot;; 19: Hello(); 20: } 21: } and: 30: Hello c</p></p><p align="left"><p align="left">= new Hello(5); 31: System.out.println(c.title); What is the result?</p></p><p align="left"><p align="left">A.Hello</p></p><p align="left"><p align="left">B.Hello World</p></p><p align="left"><p align="left">C.Compilation fails.</p></p><p align="left"><p align="left">D.Hello World 5</p></p><p align="left"><p align="left">E.The code runs with no output.</p></p><p align="left"><p align="left">F.An exception is thrown at runtime.</p></p><p align="left"><p align="left">Answer:C</p></p><p align="left"><p align="left">7.Given: 10. interface A { public int getValue(); } 11. class B implements A { 12. public int getValue()</p></p><p align="left"><p align="left">{ return 1; } 13. } 14. class C extends B { 15. // insert code here 16. } Which three code fragments, inserted</p></p><p align="left"><p align="left">individually at line 15, make use of polymorphism? (Choose three.)</p></p><p align="left"><p align="left">A.public void add(C c) { c.getValue(); }</p></p><p align="left"><p align="left">B.public void add(B b) { b.getValue(); }</p></p><p align="left"><p align="left">C.public void add(A a) { a.getValue(); }</p></p><p align="left"><p align="left">D.public void add(A a, B b) { a.getValue(); }</p></p><p align="left"><p align="left">E.public void add(C c1, C c2) { c1.getValue(); }</p></p>Answer:B C D只要你付出就会有回报的,如果连帖都不肯回的人肯定就看不到完整版的题库了,呵呵,大家顶起来啊!!!!!!!!!!!!!!<br /><br /><br /><br />

论坛徽章:
0
发表于 2010-04-06 19:39 |显示全部楼层
erickins@gmail.com

论坛徽章:
0
发表于 2011-03-21 23:20 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
发表于 2011-12-05 10:55 |显示全部楼层
谢谢,我需要完整版的题库,
请发一份到我的邮箱:magotan_c@126.com

谢谢您
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP