310-035 SCJP Braindump
ExamSoon 310-035 Exams
SUN SUN CERTIFIED PROGRAMMER FOR THE JAVA 2 PLATFORM 1.4
O rder : 310-035 Exam
Practice Exam: 310-035
Exam Number/Code: 310-035
Exam Name: SUN CERTIFIED PROGRAMMER FOR THE JAVA 2 PLATFORM
1.4
Questions and Answers: 366 Q&As
Free 310-035 Braindumps
Exam : SUN 310-035
Title : Sun Certified Programmer For The Java 2 Platform 1.4
1. }
11. }
Which statement is true?
A. The MyCircle class is fully encapsulated.
B. The diameter of a given MyCircle is guaranteed to be twice its radius.
C. Lines 5 and 6 should be in a synchronized block to ensure encapsulation.
D. The radius of a MyCircle object can be set without affecting its diameter.
Answer: D
2. Given:
1. public class ConstOver {
2. public ConstOver(int x, int y, int z) {
3. }
4. }
Which two overload the ConstOver constructor? (Choose two.)
A. ConstOver() { }
B. protected int ConstOver() { }
C. private ConstOver(int z, int y, byte x) { }
D. public Object ConstOver(int x, int y, int z) { }
E. public void ConstOver(byte x, byte y, byte z) { }
Answer: AC
3. }
When is the B object, created in line 14, eligible for garbage collection?
A. after line 16
B. after line 17
C. after line 18 (when the method ends)
D. There is no way to be absolutely certain.
E. The object is NOT eligible for garbage collection.
Answer: D
4. abstract class JetStream implements Helicopter { }
Which statement is correct?
A. TransportVehicle has a Passenger.
B. Engine is encapsulated in the JetStream class.
C. Interface TransportVehicle forms the basis for polymorphic actions.
D. Non-abstract classes extending JetStream can optionally provide a method definition for the loadPassengers()
method.
Answer: C
5. b = null;
17. a = null;
18. System.out.println("start completed");
19. }
When is the B object, created in line 14, eligible for garbage collection?
A. after line 16
B. after line 17
C. after line 18 (when the method ends)
D. There is no way to be absolutely certain.
E. The object is NOT eligible for garbage collection.
Answer: D
6. S