In: Computer Science
Error is nothing but a mistake done in a program.
Bug is nothing but a mistake or flaw in a computer program.
Flaw mean a error in a program.
These errors can be modified by using a compiler or interpreter.
The modified compiler program is given to the programmer (without any mistakes).
The bug which was faced by computer programmers and users all over the world on January 2000, that bug is called as "millennium bug".
When complicated computer Programs are written during 1960's and through 1980's they used 2 degree code to read the year as two digit. For suppose the year is 1970, they read it as '70', left 90 .
For suppose there are two years 1900 and 2000, if they read it as '00' leaving 19 and 20. So it may be very difficult to recognize as whether it is 1900 or 2000.
As the year 2000 approached, computer programmers realized that computers might not interpret 00 as 2000, but as 1900. Activities that were programmed on a daily or yearly basis would be damaged or flawed. As December 31, 1999, turned into January 1, 2000, computers might interpret December 31, 1999, turning into January 1, 1900.
Software refers to the electronic programs used to tell the computer what to do. Hardware is the machinery of the computer itself.
The bug which was occurred through it may be from software or hardware.
Some bugs may cause only trivial problems, but flight control software and software for medical equipment are examples of things that simply cannot be allowed to fail due to programming errors.
This is what happens when the programs are released with errors and bugs.