File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

broder exception

 
Arun Maalik
Ranch Hand
Posts: 216
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2399
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic