• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tell me about Errors in java.lang package

 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai guys and gals,
i want to know inwhich scenarious we can use Error class and its subclasss.
We cant catch Errors so what is the need of Errors.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Errors are intended for notification of problems that Java can not recover from. See the JavaDocs for Throwable, Error and Exception and this chapter in the language specification.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic