Header Ads

Header ADS

Why Java use both compiler and interpreter

The Compiler of java is called javac. The compiler converts source code into Bytecode  and convert the file into .class file. The Bytecode file is unique for all types of Operating System. Bytecode is platform independent.

After that,
The Interpreter of java converts Bytecode into the specific Operating System's machine code. This code will vary according to Operating System. And this is why java use both compiler and interpreter.

No comments

Powered by Blogger.