Ask Question
15 August, 10:15

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

+1
Answers (1)
  1. 15 August, 11:48
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers