When a programmer saves to a file the statements he or she writes to create a program, these statements are compiled.
The compiler translates the source code into a byte code file .
During this process, the compiler finds any syntax errors that exist in the program.