Bug: An error in a program or software is called a bug. Removing the error is called debugging.

There are 3 types of errors

1.Syntax errors (compile time error): These are the errors detected by Java compiler at the time of compilation of a program. The errors due to improper syntax and grammar comes under compile time errors. Desk checking is a solution for compile time errors. Checking the program word by word, line by line is called desk checking. Java compiler can display upto 100 compile time errors only. These errors are called as checked exceptions in Java.

2.Runtime errors: These are the errors which are detected by JVM at the time of reunning the program. These errors happen because of inefficiency of computer system Eg: insufficient memory, unable to execute the instruction. These runtime errors are also called exceptions.

3.Logical errors: These errors are not detected by the Java compiler and JVM. These are the errors due to bad logic. The programmer is completely responsible for these errors. Logical errors can be detected by comparing the output of the program with manually calculated results.

In my next posts, I'm going to explain more about handling the exception in details... Watch out... :)