How to pass SUN 310-065 Real Exam in 24 Hours [practice question 131-140]


♥♥ 2017 NEW RECOMMEND ♥♥

Free VCE & PDF File for SUN 310-065 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 310-065 Exam Dumps (PDF & VCE):
Available on: http://www.certleader.com/310-065-dumps.html


310-065 Product Description:
Exam Number/Code: 310-065 vce
Exam name: Sun Certified Programmer for the Java 2 Platform.SE 6.0
n questions with full explanations
Certification: SUN Certification
Last updated on Global synchronizing

Instant Access to Free VCE Files: SUN 310-065 Sun Certified Programmer for the Java 2 Platform.SE 6.0

310-065 examcollection

Simulation of 310-065 dumps materials and testing bible for SUN certification for IT examinee, Real Success Guaranteed with Updated 310-065 pdf dumps vce Materials. 100% PASS Sun Certified Programmer for the Java 2 Platform.SE 6.0 exam Today!

2016 May 310-065 Study Guide Questions:

Q131. Given: 

11. public abstract class Shape { 

12. private int x; 

13. private int y; 

14. public abstract void draw(); 

15. public void setAnchor(int x, int y) { 

16. this.x = x; 

17. this.y = y; 

18. } 

19. }

 Which two classes use the Shape class correctly? (Choose two.) 

A. public class Circle implements Shape { 

private int radius; 

B. public abstract class Circle extends Shape { 

private int radius; 

C. public class Circle extends Shape { 

private int radius; 

public void draw(); 

D. public abstract class Circle implements Shape { 

private int radius; 

public void draw(); 

E. public class Circle extends Shape { 

private int radius; 

public void draw() {/* code here */} 

F. public abstract class Circle implements Shape { 

private int radius; 

public void draw() { /* code here */ } 

Answer: BE 


Q132. Given: 

12. import java.util.*; 

13. public class Explorer1 { 

14. public static void main(String[] args) { 

15. TreeSet<Integer> s = new TreeSet<Integer>(); 

16. TreeSet<Integer> subs = new TreeSet<Integer>(); 

17. for(int i = 606; i < 613; i++) 

18. if(i%2 == 0) s.add(i); 

19. subs = (TreeSet)s.subSet(608, true, 611, true); 

20. s.add(609); 

21. System.out.println(s + " " + subs); 

22. } 

23. } 

What is the result? 

A. Compilation fails. 

B. An exception is thrown at runtime. 

C. [608, 609, 610, 612] [608, 610] 

D. [608, 609, 610, 612] [608, 609, 610] 

E. [606, 608, 609, 610, 612] [608, 610] 

F. [606, 608, 609, 610, 612] [608, 609, 610] 

Answer: F 


Q133. A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class? (Choose three.) 

A. The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar. 

B. The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar.. 

C. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class. 

D. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar. 

E. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -cp /foo/myLib.jar/Paper Book.java. 

F. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d /foo/myLib.jar Book.java 

G. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar Book.java 

Answer: BDG 


310-065  dumps

Regenerate 310-065 exam answers:

Q134. Given classes defined in two different files: 

1. package util; 

2. public class BitUtils { 

3. private static void process(byte[] b) {} 

4. } 

1. package app; 

2. public class SomeApp { 

3. public static void main(String[] args) { 

4. byte[] bytes = new byte[256]; 

5. // insert code here 

6. } 

7. } 

What is required at line 5 in class SomeApp to use the process method of BitUtils? 

A. process(bytes); 

B. BitUtils.process(bytes); 

C. app.BitUtils.process(bytes); 

D. util.BitUtils.process(bytes); 

E. import util.BitUtils.*; process(bytes); 

F. SomeApp cannot use the process method in BitUtils. 

Answer: F 


Q135. Click the Exhibit button. 


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 


Q136. Given: 

11. class A { 

12. public void process() { System.out.print("A,"); } 

13. class B extends A { 

14. public void process() throws IOException { 

15. super.process(); 

16. System.out.print("B,"); 

17. throw new IOException(); 

18. } 

19. public static void main(String[] args) { 

20. try { new B().process(); } 

21. catch (IOException e) { System.out.println("Exception"); } 

22. } 

What is the result? 

A. Exception 

B. A,B,Exception 

C. Compilation fails because of an error in line 20. 

D. Compilation fails because of an error in line 14. 

E. A NullPointerException is thrown at runtime. 

Answer: D 


certleader.com

Refined 310-065 paper:

Q137. Given: 

31. // some code here 

32. try { 

33. // some code here 

34. } catch (SomeException se) { 

35. // some code here 

36. } finally { 

37. // some code here 

38. } 

Under which three circumstances will the code on line 37 be executed? (Choose three.) 

A. The instance gets garbage collected. 

B. The code on line 33 throws an exception. 

C. The code on line 35 throws an exception. 

D. The code on line 31 throws an exception. 

E. The code on line 33 executes successfully. 

Answer: BCE 


Q138. Given: 

12. import java.util.*; 

13. public class Explorer3 { 

14. public static void main(String[] args) { 

15. TreeSet<Integer> s = new TreeSet<Integer>(); 

16. TreeSet<Integer> subs = new TreeSet<Integer>(); 

17. for(int i = 606; i < 613; i++) 

18. if(i%2 == 0) s.add(i); 

19. subs = (TreeSet)s.subSet(608, true, 611, true); 

20. subs.add(629); 

21. System.out.println(s + " " + subs); 

22. } 

23. } 

What is the result? 

A. Compilation fails. 

B. An exception is thrown at runtime. 

C. [608, 610, 612, 629] [608, 610] 

D. [608, 610, 612, 629] [608, 610, 629] 

E. [606, 608, 610, 612, 629] [608, 610] 

F. [606, 608, 610, 612, 629] [608, 610, 629] 

Answer: F 


Q139. Given: 

3. interface Fish { } 

4. class Perch implements Fish { } 

5. class Walleye extends Perch { } 

6. class Bluegill { } 

7. public class Fisherman { 

8. public static void main(String[] args) { 

9. Fish f = new Walleye(); 

10. Walleye w = new Walleye(); 

11. Bluegill b = new Bluegill(); 

12. if(f instanceof Perch) System.out.print("f-p "); 

13. if(w instanceof Fish) System.out.print("w-f "); 

14. if(b instanceof Fish) System.out.print("b-f "); 

15. } 

16. }

 What is the result? 

A. w-f 

B. f-p w-f 

C. w-f b-f 

D. f-p w-f b-f 

E. Compilation fails. 

F. An exception is thrown at runtime. 

Answer: B 


Q140. Given: 

11. public static Collection get() { 

12. Collection sorted = new LinkedList(); 

13. sorted.add("B"); sorted.add("C"); sorted.add("A"); 

14. return sorted; 

15. } 

16. public static void main(String[] args) { 

17. for (Object obj: get()) { 

18. System.out.print(obj + ", "); 

19. } 

20. } 

What is the result? 

A. A, B, C, 

B. B, C, A, 

C. Compilation fails. 

D. The code runs with no output. 

E. An exception is thrown at runtime. 

Answer: B 



see more Sun Certified Programmer for the Java 2 Platform.SE 6.0