Java theorytheory 0/50 · 0%
Fundamentals · easy

10. Exception Handling (Try-Catch)

Dealing with errors gracefully.

Exceptions are handled using try, catch, and finally blocks. Finally always executes.

Check your understanding

  1. 1. Which block always runs?

  2. 2. Keyword to manually throw an exception?