<<< | Index | Common syntax errors >>> |
There are three types of errors that may occur in Java programming:
Syntax errors (or compile-time errors) -- violate Java syntax rules or rules for Java statements (e.g. code may require an exception handler.)
Runtime errors -- the syntax is okay, but these errors throw exceptions that stop the execution of the application.
Logic errors -- the code that produces the wrong results without syntax or runtime errors, e.g. wrong formula to convert inches to centimeters.
<<< | Index | Common syntax errors >>> |