Bug: The problem getting at the time of testing. Defect: when we get problem on customer's hand is a defect.
Defect:Tester found a mismatch during testing time is called as defect. Bug:tester found defect is accepted by tracking team and developer ready to fix is called as bug
Bug means it is a coding error.it is fixed by the developer which is posted by the tester. Where as defect is found by the tester while they are testing the application.