pass4side has assembled to take you through 120 Q&As to your 212-055 Exam preparation. In the 212-055 exam resources, you will cover every field and category in 212-055 helping to ready you for your successful Juniper Certification.
Quality and Value for the 212-055 Exam
pass4side Practice Exams for SUN 212-055 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 212-055 Exam
If you prepare for the exam using our pass4side testing engine, we guarantee your success in the first attempt. If you do not pass the SCJP 212-055 exam (Sun Certified Programmer for the Java 2 Platform.SE 5.0) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
SUN 212-055 Downloadable, Printable Exams (in PDF format)
Our Exam 212-055 Preparation Material provides you everything you will need to take your 212-055 Exam. The 212-055 Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
Exam : SUN 212-055
Title : Sun Certified Programmer for the Java 2 Platform.SE 5.0
1. 現有:
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
2. 現有:
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
3. 現有:
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
4. 現有:
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
5. 現有:
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
6. 現有:
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
7. 現有:
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
8. 現有:
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
212-055 Downloadable, Interactive Testing engines
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 SCJP 212-055 Exam will provide you with exam 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 212-055 Exam:100% Guarantee to Pass Your SCJP exam and get your SCJP Certification.