Help on Debugging

From CompSciWiki
Revision as of 15:28, 10 October 2008 by Mdomarat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

COMP 1010 Home > Back to Chapter Topics


Introduction

This section gives some help on debugging Java programs.

   

{{{Body}}}


Compile-time Errors

Compile-time errors are errors Java reports to us while we're compiling a Java program. These are typically problems that, when not resolved, prevent Java from being able to properly understand the code we're compiling, and so must be fixed before a class file can be built.

A list of common compile-time errors and typical causes: Interpreting Compile-time Error Messages.

Run-time Errors

Run-time errors occur when you run a Java application on the JVM. Typically, these may not be problems explicitly with the code but may be issues that can only be determined when the code is run.

For interpreting run-time errors see this list.