Which keyword is used to explicitly generate an
exception ?
Answers
Answered by
0
Explanation:
throw keyword
The throw keyword in Java is used to explicitly throw an exception from a method or any block of code. We can throw either checked or unchecked exception. The throw keyword is mainly used to throw custom exceptions
Answered by
3
ƛƝƧƜЄƦ
Throw keyboard
Explanation:
The throw keyword in Java is used to explicitly throw an exception from a method or any block of code. We can throw either checked or unchecked exception. The throw keyword is mainly used to throw custom exceptions.
Similar questions