Ask Question

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

+5
Answers (1)
  1. 16 July, 10:03
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers