Multiple choice

Which of the following methods is used in Java to throw an exception explicitly in a program?

  1. Throws

  2. Throw

  3. Finally

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This method is used in Java to throw an exception explicitly in a program.