Question: what is the difference between java compiler and jvm?
Answer: Compiler : Compiler's job is to compile the code which is written in any language and create byte code to execute in machine. Each language have their own compilers. JVM : JVM is java virtual machine and its contains the compiler for java language and create byte code which will be executed on any plateform.