Errors occurs when a program abnormally terminates. Exceptions occur at compile time or runtime when there is an error in the program.