[Master Answer Logo]
Question

How do I compile my Java file?

Answer

Execution of .class or .jar files is then handled by the JVM runtime which carries out emulation of the JVM instruction set by interpreting it or by applying a just-in-time compiler (JIT) such as Sun's HotSpot. JIT compilation is used (rather than interpreters) in most JVM's today to achieve greater speed.

— Source: Wikipedia (www.wikipedia.org)