This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

broder exception  RSS feed

 
Arun Maalik
Ranch Hand
Posts: 216
  • 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: 2409
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!