Common Exceptions in Java

In Java, it is conceivable to characterize two categories of Exceptions and Errors.

  • Programmatic exceptions: – These special cases are tossed unequivocally by the application or the API software engineers Examples: Illegalargumentexception, IllegalStateException.
  • JVM Exceptions: – These are exemptions/mistakes that are solely or consistently thrown by the JVM. Some exceptions of this class are ArrayIndexOutOfBoundsException, NullPointerException and ClassCastException.

 

For any query or issue, feel free to discuss on http://discuss.eduguru.in