Java throw keyword
throw is used to throw an exception object explicitly. It can take only one argument and that will be an exception object. Exception object to be thrown can be of either checked or unchecked exception type. Syntax throw exception_object; Java throw keyword Example class ArithmaticTest{ public void division(int num1, int num2){ try{ //java.lang.ArithmeticException … Read more