310-055 SCJP Braindump
ExamSoon 310-055 Exams
SUN Sun Certified Programmer for the Java 2 Platform.SE 5.0
O rder : 310-055 Exam
Practice Exam: 310-055
Exam Number/Code: 310-055
Exam Name: Sun Certified Programmer for the Java 2 Platform.SE 5.0
Questions and Answers: 194 Q&As
Free 310-055 Braindumps
Exam : SUN 310-055
Title : Sun Certified Programmer for the Java 2 Platform.SE 5.0
1. 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
2. }
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
3. }
19. }
Which statement is true?
A. The time to find the value from HashMap with a Person key depends on the size of the map.
B. Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C. Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.
D. The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on
the size of the map.
Answer: A
4. 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. this.name = name;
15. }
16. public int hashCode() {
17. return 420;
18. }
19. }
Which statement is true?
A. The time to find the value from HashMap with a Person key depends on the size of the map.
B. Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C. Inserting a second Person object into a HashSet will cause the first Person object to be removed as a dupl