Core - Java :
For C or C++ language .c or cpp files when we compile directly it convert into machine understandable code so it directly it will execute on the machine . but for .java files when we compile it does not converted in machine understandable code it gives .class file which are not machine understandable code so in order to have machine understandable code we use JVM it give machine understandable code .
Below image show how the .java will convert into platform specific executable machine code .