what is the difference between error,bug and defect?
Error is an fault in the program (eg: syntax error). Defect is an mis-match of Actal result and Expected result. If the defect is accepted by the developer, then its called as Bug.