Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checked exception

 
sam mitwa
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is checked exception
how it is different from other exceptions
why we say exceptions checked
how it is different from runtime exception
how can we categorized whather this exception is checked or not
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"checked" means "compile-time checked".
The compiler will force you to handle it.
A checked exception is any Throwable that is not a java.lang.RuntimeException or java.lang.Error (or subtype of).
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java in General (Beginner).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic