Ask Question
2 February, 05:17

A throw ( ...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred.

Select one:

a. TRUE

b. FALSE

+2
Answers (1)
  1. 2 February, 07:06
    0
    a. True.

    Explanation:

    A throw statement is used to throw an exception from inside the method. Whenever the throw statement is encountered by the compiler and after that when it is executed the execution of the currently executing method is stopped and it returns back to caller.

    There is also a keyword Throws which is used to tell the compiler that the method may throw one or more exceptions.

    Hence we conclude that the answer is True.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A throw ( ...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred. Select ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers