permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes broder exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "broder exception" Watch "broder exception" New topic
Author

broder exception

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
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


Thanks

Arun kumar maalik
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
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.
 
Consider Paul's rocket mass heater.
 
subject: broder exception