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 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…
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"); …