| Author |
reg. super class exceptions
|
sanjay kumar
Greenhorn
Joined: Aug 29, 2006
Posts: 2
|
|
"cannot catch an exception unless it is thrown in try block" try { } catch(FileNotFoundException) { } //gives compiler error. but you can catch a super class exception which is not thrown in try block. try { } catch(Exception) { } // no compiler error what are all the super class exceptions? whether i should know all the exceptions for the exam (1.4)
|
 |
Aniket Patil
Ranch Hand
Joined: May 02, 2006
Posts: 218
|
|
What can you catch when try block does not throw exception? http://www.xyzws.com/faq.do?cat=faq&article=96 [ September 17, 2006: Message edited by: Aniket Patil ]
|
SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!
|
 |
 |
|
|
subject: reg. super class exceptions
|
|
|