Computer Science, asked by dhyanishpatel, 6 months ago

Which keyword is used to explicitly generate an
exception ?​

Answers

Answered by Feirxefett
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 Anonymous
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