2011-01-30 10:54:34Examsoon認證考試題庫

Examsoon認證考試題庫分享310-055考古題問答賞析

Examsoon的SCJP 認證考古題由資深IT認證講師和SCJP 産品專家結合PROMETRIC或VUE的真實考試環境最新原題傾心打造.

Examsoon認證考試題庫-始終致力與爲客戶提供SCJP 認證的全真考題及認證學習資料,助您壹次通過SCJP 認證考試。

310-055考古題問答賞析:

1.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; }

F.class Man { private BestFriend; }

Answer:D

2.Given: 1. package test; 2. 3. class Target { 4. public String name = "hello"; 5. } What can directly access and change the value of the variable name?

A.any class

B.only the Target class

C.any class in the test package

D.any class that extends Target

Answer:C

3. Given: 10. interface Jumper { public void jump(); } ... 20. class Animal {} ... 30. class Dog extends Animal { 31. Tail tail; 32. } ... 40. class Beagle extends Dog implements Jumper{ 41. public void jump() {} 42. } ... 50. class Cat implements Jumper{ 51. public void jump() {} 52. } Which three are true? (Choose three.)

A.Cat is-a Animal

B.Cat is-a Jumper

C.Dog is-a Animal

D.Dog is-a Jumper

E.Cat has-a Animal

F.Beagle has-a Tail

G.Beagle has-a Jumper

Answer:B C F

4.Given: 10: public class Hello { 11: String title; 12: int value; 13: public Hello() { 14: title += " World"; 15: } 16: public Hello(int value) { 17: this.value = value; 18: title = "Hello"; 19: Hello(); 20: } 21: } and: 30: Hello c = new Hello(5); 31: System.out.println(c.title); What is the result?

A.Hello

B.Hello World

C.Compilation fails.

D.Hello World 5

E.The code runs with no output.

F.An exception is thrown at runtime.

Answer:C

5.Given: 10. interface A { public int getValue(); } 11. class B implements A { 12. public int getValue() { return 1; } 13. } 14. class C extends B { 15. // insert code here 16. } Which three code fragments, inserted individually at line 15, make use of polymorphism? (Choose three.)

A.public void add(C c) { c.getValue(); }

B.public void add(B b) { b.getValue(); }

C.public void add(A a) { a.getValue(); }

D.public void add(A a, B b) { a.getValue(); }

E.public void add(C c1, C c2) { c1.getValue(); }

Answer:B C D

310-055認證證照:

Sun Certified Programmer for the Java 2 Platform.SE 5.0

科目編號 : 310-055

科目名稱 : Sun Certified Programmer for the Java 2 Platform.SE 5.0

考試題型:複選、填空和拖拽匹配

題量:59

及格標准:61%

時限:120分鍾

費用:1500元

310-055 考試是SUN認證的 Sun Certified Programmer for the Java 2 Platform.SE 5.0 認證考試官方代號,Sun Certified Programmer for the Java 2 Platform.SE 5.0 認證作為全球IT領域專家 SUN 熱門認證之壹,是許多大中IT企業選擇人才標準的必備條件。

SCJP認證是業界最廣泛認可的IT技術認證之壹,也是業界最權威、最受尊敬的認證之壹。獲得310-055認證不僅僅能證明您的IT技術能力,更是您進入職場的敲門磚,也是提高您身價的另壹捷徑。

分享更多證照考試科目代碼:

BI0-112