Skip to content
Sharp

Exceptions · interview question

Which Java keyword would you use to handle exceptions in Java?

Multiple choiceEasychapter-6-curatedpremiumexceptionsfail-fast-validation
Choose one answer
Answer and explanation

Correct answer

D. Try-catch

Why

The 'try-catch' block is used to handle exceptions in Java. It allows you to catch and manage exceptions so that the program can continue running.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →