File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes checked and Unchecked exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "checked and Unchecked exceptions" Watch "checked and Unchecked exceptions" New topic

checked and Unchecked exceptions

Chetan Dodiya
Ranch Hand

Joined: Jun 27, 2008
Posts: 39
what are the checked and unchecked exceptions.....
and how to handle it???

SCJP 1.5
Harshit Rastogi
Ranch Hand

Joined: Apr 15, 2008
Posts: 131
You can find the answer :
Checked & Unchecked Exception

My Techie Blog - Java Questions
mani vannan
Ranch Hand

Joined: Apr 17, 2006
Posts: 47
Checked exception - you need to declare them, otherwise compiler will crip.
Unchecked exception - you dont need to declare, compiler would let you go.

Btw, this is a repeating question and you will find good information if you search this thread.

Mani (SCEA 1.4)<br /><a href="" target="_blank" rel="nofollow"> Is SCJP Useful? Worth? Helps job?</a>
geeta vemula
Ranch Hand

Joined: Jul 18, 2008
Posts: 208
checked excetions are compile time exceptions which you can handle using try-catch and unchecked are runtime exceptions which you cannot handle.
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
I have this hunch that all checked exceptions occur because there is a 'throw/throws' happening somewhere down the line. Am i correct?

I agree. Here's the link:
subject: checked and Unchecked exceptions
It's not a secret anymore!