Certification Practice Test | PDF Questions | Actual Questions | Test Engine | Pass4Sure
212-055 : Sun Certified Programmer for the Java 2 Platform.SE 5.0 Exam
SUN 212-055 Questions & Answers
Full Version: 581 Q&A
212-055 Dumps
212-055 Braindumps
212-055 Real Questions
212-055 Practice Test
212-055 Actual Questions
SUN
212-055
Sun Certified Programmer for the Java 2 Platform.SE
5.0
https://killexams.com/pass4sure/exam-detail/212-055
16. }
17. }
And the invocation:
31. test(null);
What is the result?
A. An exception is thrown at runtime.
B. "String is empty" is printed to output.
C. Compilation fails because of au error in line 12.
D. "String is not empty" is printed to output.
Answer: A
QUESTION: 214
Given:
11. public static void test(String str) {
12. int check = 4;
13. if (check = str.length()) {
14. System.out.print(str.charAt(check -= 1) +", ");
15. } else {
16. System.out.print(str.charAt(0) + ", ");
17. }
18. }
And the invocation:
21. test("four");
22. test("tee");
23. test("to");
What is the result?
A. r, t, t,
B. r, e, o,
C. Compilation fails.
D. An exception is thrown at runtime.
Answer: C
QUESTION: 215
135
Given:
10. public class MyClass {
11.
12. public Integer startingI;
13. public void methodA() {
14. Integer i = new Integer(25);
15. startingI = i;
16. methodB(i);
17. }
18. private void methodB(Integer i2) {
19. i2 = i2.intValue();
20.
21. }
22. }
If methodA is invoked, which two are true at line 20? (Choose two.)
A. i2 == startingI returns true.
B. i2 == startingI returns false.
C. i2.equals(startingI) returns true.
D. i2.equals(startingI) returns false.
Answer: B, C
QUESTION: 216
Given:
11. class Cup { }
12. class PoisonCup extends Cup { }
....
21. public void takeCup(Cup c) {
22. if(c instanceof PoisonCup) {
23. System.out.println("Inconceivable!");
24. } else if(c instanceof Cup) {
25. System.out.println("Dizzying intellect! ");
26. } else {
27. System.exit(0);
28. }
29. }
And the execution of the statements: Cup cup = new PoisonCup(); takeCup(cup);
What is the output?
136
A. Inconceivable!
B. Dizzying intellect!
C. The code runs with no output.
D. An exception is thrown at runtime.
E. Compilation fails because of an error in line 22.
Answer: A
QUESTION: 217
Given:
11. String[] elements = { "for", "tea", "too" };
12. String first = (elements.length > 0) ? elements[0] : null;
What is the result?
A. Compilation fails.
B. An exception is thrown at runtime.
C. The variable first is set to null.
D. The variable first is set to elements[0].
Answer: D
QUESTION: 218
Given:
42. public class ClassA {
43. public int getValue() {
44. int value=0;
45. boolean setting = true;
46. String title="Hello";
47. if (value || (setting && title == "Hello")) { return 1; }
48. if (value == 1 & title.equals("Hello")) { return 2; }
49. }
50. }
And:
70. ClassA a = new ClassA();
71. a.getValue();
What is the result?
137
A. 1
B. 2
C. Compilation fails.
D. The code runs with no output.
E. An exception is thrown at runtime.
Answer: C
QUESTION: 219
Click the Exhibit button. What is the result? Exhibit:
A. go in Goban go in Sente go in Sente
B. go in Sente go in Sente go in Goban
C. go in Sente go in Goban go in Goban
138
D. go in Goban go in Goban go in Sente
E. Compilation fails because of an error in line 17.
Answer: C
QUESTION: 220
Given:
10. public class Foo {
11. public int a;
12. public Foo() { a = 3; }
13. public void addFive() { a += 5; }
14. }
and:
20. public class Bar extends Foo {
21. public int a;
22. public Bar() { a = 8; }
23. public void addFive() { this.a +=5; }
24. }
invoked with:
30. Foo foo = new Bar();
31. foo.addFive();
32. System.out.println("Value: "+ foo.a);
What is the result?
A. Value: 3
B. Value: 8
C. Value: 13
D. Compilation fails.
E. The code runs with no output.
F. An exception is thrown at runtime.
Answer: A
QUESTION: 221
Which of the following follows Correct Java Bean Listner rules:
A. Listener()
139
B. addMouseListener()
C. updateActionListener()
D. removeMyListener()
Answer: A, B, D
140
User: Yuliana***** killexams.com material covers all aspects of the 212-055 exam, making it a must-have for anyone new to this field. This material proved particularly helpful in increasing my expertise in 212-055, and I have been recommending it to my friends and co-workers. |
User: HeloĆsa***** I recently became 212-055 certified, and it has been an exciting career path. If you are still considering it, I recommend getting questions and answers to prepare for the 212-055 exam. It saves a lot of time as you get exactly what you need to know for the exam. This is why I chose it, and I am satisfied with my decision. |
User: Ruby***** As an administrator preparing for the 212-055 exam, I found that referring to detailed books was making my education more challenging. However, when I turned to Killexams.com, I realized that I could easily memorize the applicable answers to the questions. Killexams.com boosted my confidence and enabled me to answer 60 questions in 80 minutes with ease. I highly recommend Killexams.com to anyone seeking smooth coaching and exam preparation. |
User: Nur***** I am delighted to share that I was one of the top performers in the 212-055 exam, and it was all thanks to the brilliant Questions and Answers material provided by killexams.com. Within a brief time, I was able to grasp all the relevant topics, which made the whole experience great! Compared to my previous attempt, which was difficult and caused me anxiety and issues, this time I passed my exam very easily without any troubles. It is truly admirable to look back on my journey, and I owe much thanks to killexams.com for their genuine help. |
User: Faye***** I have tried several other exam practice tests in the past, but the quality of the 212-055 exam practice tests from Killexams.com is superior. I am grateful for their exceptional materials, which helped me score 95% on the exam. Their questions and answers truly taught me how to think like the exam and succeed. |
Features of iPass4sure 212-055 Exam
- Files: PDF / Test Engine
- Premium Access
- Online Test Engine
- Instant download Access
- Comprehensive Q&A
- Success Rate
- Real Questions
- Updated Regularly
- Portable Files
- Unlimited Download
- 100% Secured
- Confidentiality: 100%
- Success Guarantee: 100%
- Any Hidden Cost: $0.00
- Auto Recharge: No
- Updates Intimation: by Email
- Technical Support: Free
- PDF Compatibility: Windows, Android, iOS, Linux
- Test Engine Compatibility: Mac / Windows / Android / iOS / Linux
Premium PDF with 581 Q&A
Get Full VersionAll SUN Exams
SUN ExamsCertification and Entry Test Exams
Complete exam list