Throws Keyword in Java | Throws Clause
In Java, sometimes a method may throw an exception in a program but cannot handle it due to not have an appropriate exception handling mechanism. In such a case, the programmer has to throw that exception to the caller of the method using throws clause. Throws clause consists of throws … Read more