Try and Fix Things

Handle syntax and runtime errors and learn all about try-catch.

Everyone makes coding mistakes. What matters is knowing how to find and fix them. In this lesson, you’ll learn about common Java errors and how to handle them safely.

Goal

You’ll aim to:

  • Understand syntax and runtime errors.

  • Use try and catch to handle exceptions.

  • Improve program safety and feedback.

Get hands-on with 1400+ tech skills courses.