Exam Number/Code: 310-055
Exam Name: Sun Certified Programmer for the Java 2 Platform.SE 5.0
Language(s): English
Price: $ 99.00
Questons and Answers : 165 Q&As
Updated: 2011-03-30
Buy it please click 310-055
It is well known that SCJP 310-055 - 310-055 exam test is the hot exam of SUN certification. pass4line offer you all the Q&A of the 310-055 real test . It is the examination of the perfect combination and it will help you pass 310-055 exam at the first time!
The SCJP 310-055 Questions and Answers as well as our other SCJP 310-055 exam training tools are not only priced to be easy on your budget - but each one is also backed with our guarantee. pass4line guarantees that after using our Cisco certification training tools, you will be prepared to take and pass your SCJP 310-055 exam.
Exam : SUN 310-055
Title : Sun Certified Programmer for the Java 2 Platform.SE 5.0
1. Which two statements are true? (Choose two.)
A. An encapsulated, public class promotes re-use.
B. Classes that share the same interface are always tightly encapsulated.
C. An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.
D. An encapsulated class allows a programmer to change an implementation without affecting outside code.
Answer: AD
2. Given:
11. String test = "a1b2c3";
12. String[] tokens = test.split("d");
13. for(String s: tokens) System.out.print(s + " ");
What is the result?
A. a b c
B. 1 2 3
C. a1b2c3
D. a1 b2 c3
E. Compilation fails.
F. The code runs with no output.
G. An exception is thrown at runtime.
Answer: A
3. Given:
11. public static Iterator reverse(List list) {
12. Collections.reverse(list);
13. return list.iterator();
14. }
15. public static void main(String[] args) {
16. List list = new ArrayList();
17. list.add("1"); list.add("2"); list.add("3");
18. for (Object obj: reverse(list))
19. System.out.print(obj + ", ");
20. }
What is the result?
A. 3, 2, 1,
B. 1, 2, 3,
C. Compilation fails.
D. The code runs with no output.
E. An exception is thrown at runtime.
Answer: C
4. Click the Exhibit button.
1. public class SimpleCalc {
2. public int value;
3. public void calculate() { value += 7; }
4. }
And:
1. public class MultiCalc extends SimpleCalc{
2. public void calculate() { value -= 3; }
3. public void calculate(int multiplier) {
4. calculate();
5. super.calculate();
6. value *= multiplier;
7. }
8. public static void main(String[] args) {
9. MultiCalc calculator = new MultiCalc();
10. calculator.calculate(2);
11. System.out.println("Value is: " + calculator.value);
12. }
13. }
What is the result?
A. Value is: 8
B. Compilation fails.
C. Value is: 12
D. Value is: -12
E. The code runs with no output.
F. An exception is thrown at runtime.
Answer: A
5. Click the Exhibit button.
10. public class ClassA {
11. public void methodA() {
12. ClassB classB = new ClassB();
13. classB.getValue();
14. }
15. }
And:
20. class ClassB {
21. public ClassC classC;
22.
23. public String getValue() {
24. return classC.getValue();
25. }
26. }
And:
30. class ClassC {
31. public String value;
32.
33. public String getValue() {
34. value = "ClassB";
35. return value;
36. }
37. }
Given:
ClassA a = new ClassA();
a.methodA();
What is the result?
A. Compilation fails.
B. ClassC is displayed.
C. The code runs with no output.
D. An exception is thrown at runtime.
Answer: D
Our on-site online training experts create all of the SUN 310-055 exam products available through pass4line. Our main goal is to get your certified with a firm understanding of the core material. Whereas other online distributors only concern themselves with helping you obtain the paper, we strive to educate the certification candidate and better prepare them for their IT career.
Why choose pass4line 310-055 braindumps
Quality and Value for the 310-055 Exam
100% Guarantee to Pass Your 310-055 Exam
Downloadable, Interactive 310-055 Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.