permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Checked and uncheked exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Checked and uncheked exceptions" Watch "Checked and uncheked exceptions" New topic
Author

Checked and uncheked exceptions

Palash Kumar
Ranch Hand

Joined: Jul 21, 2009
Posts: 33

which exceptions are checked and whic are unchecked, i should know for the SCJP6.....

Are unchecked exceptions are sublass of RuntimeException...?


SCJP 6 with 80%, going for SCWCD
Jason Irwin
Ranch Hand

Joined: Jun 09, 2009
Posts: 327
Unchecked exceptions are subtypes of RuntimeException.
Subtypes of Error are also considered unchecked.
Everything else is checked.

Yes, you need to know this, and what exceptions are which, for the exam.

If you have K&B (or any other decent study book) that will contain a full description of the important excpetions, including which ones are thrown by the JVM and which ones programmatically (you need to know that too).


SCJP6
Palash Kumar
Ranch Hand

Joined: Jul 21, 2009
Posts: 33

i have studied K&B...
is there any relation between JVM thrown exception and Checked/unchecked ones...?

please can you enlist checked and unchecked exceptions
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Checked vs Unchecked exceptions


http://muhammadkhojaye.blogspot.com/
Jason Irwin
Ranch Hand

Joined: Jun 09, 2009
Posts: 327
It's all in the K&B book. I made a simple class diagram detailing all this information for myself. You could do the same (me just giving it to you is not as much value as you doing it yourself).

You want Chapter 5, Objective 2.6. On page 386 (SCJP6) there is an excellent table that covers almost everything.
Palash Kumar
Ranch Hand

Joined: Jul 21, 2009
Posts: 33

Thank you guys
Stephen Davies
Ranch Hand

Joined: Jul 23, 2008
Posts: 352
Have a look at the JAVA API, starting at java.lang.Throwable or java.lang.Exception. This will also help you understand the Exception Hierarchy more also, and differentiate between Checked and unchecked Exceptions.



be a well encapsulated person, don't expose your privates, unless you public void getWife()!
Jeena Jeen
Ranch Hand

Joined: Feb 11, 2009
Posts: 47
Hi guys,
I do understand the difference between checked and unchecked Exception.
But i don't understand the relation of checked/unchecked Exception with JVM and Programmatically thrown Exceptions.

Is it true that:
JVM Exception: Unchecked Exception(Runtime)
Programmatically thrown Exception : Checked/ Unchecked.

In K&B all the examples of Programmatically thrown Exception are Unchecked Exceptions. Does all of the checked Exception comes under Prog Thrown Exception??

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Is it true that:
JVM Exception: Unchecked Exception(Runtime)
Programmatically thrown Exception : Checked/ Unchecked.


Yes, JVM exceptions are unchecked, programmatic exceptions can be checked or unchecked...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jeena Jeen
Ranch Hand

Joined: Feb 11, 2009
Posts: 47
Thanks Ankit
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Checked and uncheked exceptions
 
Similar Threads
Regarding Overiding
Exceptions
Questions from mock Exam !!!
Exceptions
checked and Unchecked exceptions