Just4Cert – IT certifications Blog

IT Training and Preparation Tests

Just4Cert 310-055Big5 Free download

Just4cert 310-055Big5 Practice Exams

Sun Certified Programmer for the Java 2 Platform.SE 5.0 Certification Braindumps

  • Exam Number/Code : 310-055Big5
  • Exam Name : Sun Certified Programmer for the Java 2 Platform.SE 5.0
  • Questions and Answers : 259 Q&As
  • Update Time: 2009-08-20
  • buy :310-055Big5 From www.just4cert.com
  • Download PDF demo click HERE!

310-055Big5 Practice Exams:

We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our SUN 310-055Big5 Practice Exams will provide you with free 310-055Big5 dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 310-055Big5 Practice Exams:100% Guarantee to Pass Your SCJP exam and get your

SCJP Braindumps

 
 
Exam : SUN 310-055Big5
Title : Sun Certified Programmer for the Java 2 Platform.SE 5.0

1. 現有:
12. public class Wow {
13. public static void go(short n) {System.out.println("short");}
14. public static void go(Short n) {System.out.println("SHORT");}
15. public static void go(Long n) {System.out.println(" LONG");}
16. public static void main(String [] args) {
17. Short y = 6;
18. int z = 7;
19. go(y);
20. go(z);
21. }
22. }
結果為何?
A. short LONG
B. SHORT LONG
C. 編譯失敗。
D. 在執行時期丟出了一個例外。
Answer: C

2. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

3. // insert code here
15. }
第14行加入哪一項程式碼後,可讓Sprite類別編譯?
A. Direction d = NORTH;
B. Nav.Direction d = NORTH;
C. Direction d = Direction.NORTH;
D. Nav.Direction d = Nav.Direction.NORTH;
Answer: D

4. 現有:
public class NamedCounter {
private final String name;
private int count;
public NamedCounter(String name) { this.name = name; }
public String getName() { return name; }
public void increment() { count++; }
public int getCount() { return count; }
public void reset() { count = 0; }
}
應該做哪三項修改,才能調整這個類別,以供多個執行緒安全地使用?(選擇三項。)
A. 用synchronized關鍵字宣告reset()
B. 用synchronized關鍵字宣告getName()
C. 用synchronized關鍵字宣告getCount()
D. 用synchronized關鍵字宣告建構元
E. 用synchronized關鍵字宣告increment()
Answer: ACE

5. }
第14行加入哪一項程式碼後,可讓Sprite類別編譯?
A. Direction d = NORTH;
B. Nav.Direction d = NORTH;
C. Direction d = Direction.NORTH;
D. Nav.Direction d = Nav.Direction.NORTH;
Answer: D

6. 現有:
11. class ClassA {}
12. class ClassB extends ClassA {}
13. class ClassC extends ClassA {}
以及:
21. ClassA p0 = new ClassA();
22. ClassB p1 = new ClassB();
23. ClassC p2 = new ClassC();
24. ClassA p3 = new ClassB();
25. ClassA p4 = new ClassC();
哪三項是正確的?(選擇三項。)
A. p0 = p1;
B. p1 = p2;
C. p2 = p4;
D. p2 = (ClassC)p1;
E. p1 = (ClassB)p3;
F. p2 = (ClassC)p4;
Answer: AEF

7. 現有:
11. String test = "This is a test";
12. String[] tokens = test.split("s");
13. System.out.println(tokens.length);
結果為何?
A. 0
B. 1
C. 4
D. 編譯失敗。
E. 在執行時期丟出了一個例外。
Answer: D

8. 現有:
10. int x = 0;
11. int y = 10;
12. do {
13. y–;
14. ++x;
15. } while (x < 5);
16. System.out.print(x + "," + y);
結果為何?
A. 5,6
B. 5,5
C. 6,5
D. 6,6
Answer: B

9. 現有:
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: }
以及:
30: Hello c = new Hello(5);
31: System.out.println(c.title);
結果為何?
A. Hello
B. Hello World
C. 編譯失敗。
D. Hello World 5
E. 這個程式碼可以執行,但沒有輸出。
F. 在執行時期丟出了一個例外。
Answer: C

10. class DoStuff implements DoStuff2 {
10. public float getRange(int x, int y) { return 3.14f; } }
11.
12. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

11. 現有:
11. public static void parse(String str) {
12. try {
13. float f = Float.parseFloat(str);
14. } catch (NumberFormatException nfe) {
15. f = 0;
16. } finally {
17. System.out.println(f);
18. }
19. }
20. public static void main(String[] args) {
21. parse("invalid");
22. }
結果為何?
A. 0.0
B. 編譯失敗。
C. 在執行時期parse方法會丟出一個ParseException。
D. 在執行時期parse方法會丟出一個NumberFormatException。
Answer: B

12.
12. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

13. 現有:
1. interface DoStuff2 {
2. float getRange(int low, int high); }
3.
4. interface DoMore {
5. float getAvg(int a, int b, int c); }
6.
7. abstract class DoAbstract implements DoStuff2, DoMore { }
8.
9. class DoStuff implements DoStuff2 {
10. public float getRange(int x, int y) { return 3.14f; } }
11.
12. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

14. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

15. public float getRange(int x, int y) { return 3.14f; } }
11.
12. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d); }
結果為何?
A. 檔案可以編譯,而沒有錯誤。
B. 編譯失敗。只有第7行有一個錯誤。
C. 編譯失敗。只有第12行有一個錯誤。
D. 編譯失敗。只有第13行有一個錯誤。
E. 編譯失敗。只有第7行與第12行有錯誤。
F. 編譯失敗。只有第7行與第13行有錯誤。
G. 編譯失敗。第7、12、與13行有錯誤。
Answer: A

310-055Big5 Certification Practice Exams Description

It is well known that 310-055Big5 test is the hot exam of SUN certification. Just4cert offer you all the Q&A of the 310-055Big5 real test . It is the examination of the perfect combination and it will help you pass 310-055Big5 exam at the first time


About The Author

admin

Comments

Comments are closed.