To compile the java program we requires compiler. In jdk, we have javac.exe, which is responsible for compilation of the program, which generates bytecode (.class file) .
To run the bytecode (.class file), we require java run time environment JRE, which is given by java.exe. In jdk as well as in jre we have java.exe.
javac.exe and java.exe both launches the jvm for compilation as well as to run the program?