Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checked Exceptions

 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can one find a list of checked vs. unchecked exceptions...this ALWAYS gets me when trying to decide if an overriding method is legal because I don't know which are checked and which aren't. Thanks.

Matt
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All subclasses of <code>Exception</code> which are not subclasses of <code>RuntimeException</code> are checked exceptions. Java API documentation is the best place to look for the list.
Hope that helps,
Ajith
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic