File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "broder exception" Watch "broder exception" New topic

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


Arun kumar maalik
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
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
It's not a secret anymore!