Skip to content
 

310-065 study guide

310-065 exam delivered at: Authorized Worldwide Prometric Testing Centers
Exam type: Multiple choice and drag and drop
Number of questions: 60
Pass score: 58.33 % (35 of 60)
Time limit: 180 minutes

310-065 study guide write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.
Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another.
Given a scenario, write code that makes appropriate use of object locking to protect static or instance variables from concurrent access problems.

Exam : SUN 310-065
Title : Sun Certified Programmer for the Java 2 Platform. SE 6.0
1. x = i+y;
6. System.out.println(x);
7. }
8. public static void main(String[] args) {
9. new Boxer1(new Integer(4));
10. }
11. }
What is the result?
A. The value “4″ is printed at the command line.
B. Compilation fails because of an error in line 5.
C. Compilation fails because of an error in line 9.
D. A NullPointerException occurs at runtime.
E. A NumberFormatException occurs at runtime.
F. An IllegalStateException occurs at runtime.
Answer: D
2. Given:
11. public static void main(String[] args) {
12. Object obj = new int[] { 1, 2, 3 };
13. int[] someArray = (int[])obj;
14. for (int i : someArray) System.out.print(i + ” “);
15. }
What is the result?
A. 1 2 3
B. Compilation fails because of an error in line 12.
C. Compilation fails because of an error in line 13.
D. Compilation fails because of an error in line 14.
E. A ClassCastException is thrown at runtime.
Answer: A

The related exams:

310-066 Upgrade EXAM for the Sun Certified for Java Programmer.SE6.0
310-083 Sun Certified Web Component Developer for J2EE 5
310-200 Sun Certified System Administrator for Solaris 10 OS.Part 1
310-202 Sun Certified System Administrator for Solaris 10 OS.Part 2

  • Share/Bookmark

The Related Posts