Skip to content
Sharp

Exceptions · interview question

What keyword is used to manually throw an exception in Java?

Multiple choiceEasychapter-6-curatedpremiumexceptionstry-catch-finally
Choose one answer
Answer and explanation

Correct answer

A. Throw

Why

The 'throw' keyword is used to manually throw an exception. This allows you to create and propagate exceptions when specific error conditions are met.

Test yourself on Exceptions

A free test with instant, explained results. No account needed.

Start free test
All Exceptions questions →