Difference Between Throw and Throws in Java
Difference Between Throw and Throws in Java
There are many differences between throw and throws keywords. A list of
differences between throw and throws are given below:
1. void m(){
2. throw new ArithmeticException("sorry");
3. }