We use high-level programming languages such as Java to write a program. The instructions or source code written using high-level language is required to get converted to machine code for a computer to understand. During compile time, the source code is translated to a byte code like from .java to .class. During compile time the compiler check for the syntax, semantic, and type of the code.
Inputs and outputs during compile time are the following:
During compile time errors occur because of syntax and semantic. The syntax error occurs because of the wrong syntax of the written code. Semantic errors occur in reference to variable, function, type declarations and type