Morgan Stanley interview question

How does java use the jvm to compile it's programs?

Interview Answer

Anonymous

11 Sept 2018

The compiler itself works as a native executable (hence javac.exe), it transforms source file into bytecode. The bytecode is platform independent because it's targeted at Java Virtual Machine. then the JVM translates it into machine code.