Exceptions

Top 10 exceptions in java

Top 10 exceptions in java Based on the person who is raising an exception all exceptions are divided into 2 category.   JVM Exception Programmatic Exception JVM Exception:   The exception which are raised automatically by JVM wh…

User defined Custom Exception in Java

User defined Custom Exception in Java Sometime to meet our programming requirement we can define our own exceptions, such types are exception are called customized or user define exception.   Ex: ToYoungException  ToOldException…

Exception handling keyword summary

Exception handling keyword summary   try:-    To maintain risky code.     catch:- To maintain exception handling code . finally:- To maintain cleanup code. throw:- To handover our created exception object to JVM manually . t…

Throw and throws keywords

Throw and throws keywords throw keyword:     Sometime we can create exception object explicitly, we can handover to the JVM manually. For this we have to use throw keyword.   throw new ArithmeticException("/ by zero"); …

Load More
That is All