Java Interview Questions
What is difference between throws and throw?
Throws clause is used when the programmer does not want to handle the exception and throw it out of a method. throw clause is used when the programmer wants to throw an exception explicitly and wants to handle it using catch block. Hence, throw and throws are contradictory.