CJCoding With Joseph
15free / daySign inCreate account

Thompson Rivers University

Question 1

Lab 3 Exceptions - SM 2025

What is the difference between an error and an exception?


Short Answer

An error is a serious issue that happens in the JVM and usually can't be recovered from (like running out of memory). An exception is a problem that occurs during the execution of a program, which can often be handled using try-catch blocks.

Members only

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 54 more lessons in Thompson Rivers University.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel any time.