A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
reg. super class exceptions
Joined: Aug 29, 2006
Sep 17, 2006 05:58:00
"cannot catch an exception unless it is thrown in try block"
//gives compiler error.
but you can catch a super class exception which is not thrown in try block.
// no compiler error
what are all the super class exceptions?
whether i should know all the exceptions for the exam (1.4)
Joined: May 02, 2006
Sep 17, 2006 06:26:00
What can you catch when try block does not throw exception?
[ 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!
Have you checked out
subject: reg. super class exceptions
ParseException vs Exception
Regarding try / catch block in Exception
true or false?
Throwing exception in overriding methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015