Java is a high-level programming language. We cannot run high level programming language directly on our machines (Laptops, computers). It needs to be translated into machine language first. Here, our compiler(javac) translates our source code (.java file) to Byte code(.class file) which is understood by JVM. JVM executes this Byte code on our machines and gives us the output. JVM makes java platform independent.
Source Code -> Compiler -> Byte code -> JVM -> Interpreter for our machines
(.java file) (javac) (.class file)
Published By : Sushmita Mandal