A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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.
It is sorta covered in the
JavaRanch Style Guide
subject: broder exception
K&B Book,chapter 5
Do not understand answer
doubt in overridding
About exceptions in overriding & overloading
Checked exception and interface.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014