Computer Science, asked by thisisut1905, 10 months ago

Checked exceptions cannot be propagated using _____only and it can be propagated with ________.


Select one:
A. Try, throws
B. Throw, throws
C. Try, catch
D. Final, finally

Answers

Answered by letmeanswer12
0

Checked exceptions cannot be propagated using throw only and it can be propagated with throws.

Explanation:

  • The Java ' throw ' keyword is used to explicitly throw a single exception from any method or constructor whilst the keyword of ' throws ' is used in the method and constructor declaration, indicating which exception this method can throw.
  • Unlike Unchecked Exceptions, in the case of Checked Exception, exception propagation does not occur and the use of throw keyword here is mandatory.
  • Unlike unchecked exceptions, it is not possible to propagate the checked exceptions without using keyword throws.

Similar questions