throw keyword in java
- 17th Aug 2017
- 0
- 3251
- importance of throw keyword in java significance of using throw keyword in java throw keyword in java throw keyword in java with an example
The ‘throw’ keyword is used to throw an exception explicitly. When a throw statement is encountered and executed, execution of the further code is stopped and returned to the caller. The throw statement takes a java.lang.Throwable as an argument. The Throwable is propagated up the call stack until it is caught by an appropriate catch […]