A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Oct 25, 2005
Oct 23, 2006 08:30:00
As we know that the overriding method must not throw checked exceptions that are new or broader than those decleared by the overriden method.
Here what does mean by the new or broader
Arun kumar maalik
Joined: Feb 07, 2005
Oct 23, 2006 08:49:00
A new exception means an exception which is not a subclass of one listed in the superclass method's throws clause.
A broader exception means a superclass of an exception listed in the superclass method's throws clause.
I agree. Here's the link:
subject: broder exception
doubt in overridding
About exceptions in overriding & overloading
K&B Book,chapter 5
Do not understand answer
Checked exception and interface.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014