Aug 25, 2018

[HDGEM] Java Exceptions

Exception: Parent class for all existing exceptions in the world, which, in turn, has two subclasses:
  • Checked Exceptions:These are typically used when you want to force the programmer using your API to think of how to handle them. These types of exceptions are checked at compile-time. Any subclass of the Exception class, which is not a subclass of RuntimeException, is considered a checked exception.
  • Runtime Exceptions: Also often called Unchecked Exceptions, these are used when your exceptional condition is unrecoverable, and you can't do anything about this. The programmer is not forced to handle these types of exceptions.


--
Posted By Blogger to HDGEM at 10/27/2016 04:07:00 PM