There is no difference between Bug, Defect, and Error. code example
Example: what is the difference between bug error and defect
If there is mistake in the code
than we call it error.
Error found by tester is called defect ,
Defect accepted by development
team is called Bug