Code is compiled to byte code that is binary and platform independent. When program has to be executed, the code is fetched into the memory and interpreted on users machine. When we compile a piece of code, all the errors are listed together. An interpreter verifies the code and executes it line by line. Compilation is process of converting the code that you type, into language that computer understandsmachine language.