310-056  Exam

Exam # of questions Description  Update
310-056 129 Sun Certified Programmer for J2SE 5.0 Upgrade Exam... 02/15/2011
[Practice Test]   [Download Study Guide(PDF)]  [Update Exam]

310-056 - Exam Information
  • Description:Sun Certified Programmer for J2SE 5.0 Upgrade Exam
  • Passing Score:0%
  • Practice Test - Number of questions:129 questions
  • Simulation Test - Number of questions:129 questions
  • Simulation Test Duration:120 minutes
  • Has explanations:No

Question of the day

Given: 11. public static void main(String[] args) { 12. String str = ?null?; 13. if(str == null) { 14. System.out.println(?null?); 15. } else (str.length() == 0) 16. System.out.println(?zero?); 17. } else { 18. System.out.println(?some?); 19. } 20. } What is the result?

Answer(s)

  1. - null
  2. - zero
  3. - some
  4. - Compilation tails.
  5. - An exception is thrown at runtime.
Correct Answer

- Compilation tails.