What is the differences between error and bug?
A bug is a defect in code. It is conventional wisdom that all programs contain bugs at some level. Typically it is considered separate from a ‘design flaw’ which is code which may be syntactically correct yet having control structure issues which vary from trivial to severe. An error is the result a problem created by a bug. The cause and effect relationship is “bugs” cause “errors”. In some circles, the words ‘bug’ and ‘program error’ (or simply error) are used interchangeably. They haven’t passed a law or anything regarding how you refer to bugs and errors so you can pretty much be left to your own devices when discussing them and programmers should know what you’re talking about.