In the field of software development, a bug is a defect in the application which usually results in it behaving incorrectly.