A compiler is a software program that performs the conversion of source code written in one programming language into executable code written in another programming language. The types of programming languages that a compiler can handle depend on the specific compiler being used. However, generally, compilers can handle one or more of the following types of programming languages:
Procedural programming languages: Procedural programming languages are designed to execute a sequence of statements in a specific order to solve a problem. C, COBOL, and FORTRAN are a few procedural programming languages that are compiled.
Object-oriented programming languages: Instances of classes that include data and methods are called objects. Object-oriented languages create programs based on these objects. Java and C++ are object-oriented languages that are compiled.
It is worth noting that Java can be considered to be both compiled and interpreted, as the source code is compiled into an intermediate byte code, which is then interpreted on the Java Virtual Machine (JVM).
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
A compiler is a software program that performs the conversion of source code written in one programming language into executable code written in another programming language. The types of programming languages that a compiler can handle depend on the specific compiler being used. However, generally, compilers can handle one or more of the following types of programming languages:
It is worth noting that Java can be considered to be both compiled and interpreted, as the source code is compiled into an intermediate byte code, which is then interpreted on the Java Virtual Machine (JVM).