Which keyword is used to manually throw an exception?

  1. throws
  2. throw
  3. catch
  4. try
Correct answer throw

Explanation

The `throw` keyword is used to throw an exception explicitly.

Update: Admin added a tag on this question

Topics

By Admin · · 37 views