Every time software runs, there's a potential for an error to occur that could grind the application to a halt.

The Java programming language provides a number of error-handling constructs that enable the developer to recover from and handle problems that occur at runtime. Some of those constructs include:

  • checked exceptions;
  • runtime exceptions;
  • system level errors; and
  • try, catch, finally blocks.

Think you've got a solid grasp on how to develop effective, error-proof Java code? Take this tough, multiple-choice, Java exception handling quiz and find out.

Take our quiz!

RuntimeExceptions in Java: What Are They and How Do You Fix Them?