Custom Exception

Custom exceptions are also called as user defined exceptions We know that, Java has already provided bunch of exceptions to handle various scenarios like ArithmeticException,NullPointerException,ArrayIndexOutOfBoundException etc. These exceptions will be thrown by java based on pre-defined conditions ArithmeticException will be thrown whenever we divide number by zero NullPointerException will be thrown whenever we access method […]

Share this article on