my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes exam lab practice exam -1, question24 need justification? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "exam lab practice exam -1, question24 need justification?" Watch "exam lab practice exam -1, question24 need justification?" New topic
Author

exam lab practice exam -1, question24 need justification?

Arjun Srivastava
Ranch Hand

Joined: Jun 23, 2010
Posts: 432


answer is it prints nothing and program never terminates, yes that is true,it shows.
in this question 24 of practice exam 1
as sleep method throws interrupted exception it must have to be used inside a try and catch clause.
but here it is nothing like that line 43.
???


SCJP 6 | FB : Java Certifications-Help. | India Against Corruption
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Since the main method throws Exception, so the code in it can throw any checked exceptions that are sub-classes of java.lang.Exception class...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: exam lab practice exam -1, question24 need justification?