There are two types of errors:- 1) Compile time errors. 2) run time errors. compile time errors are mainly occurring due to syntax errors.. Run time error occurs due to linking error, dynamic binding, stack overflow..etc etc