Answer
The JVM is the specified virtual machine; a JDK is a development kit containing tools and a Java run-time implementation. • The JVM executes class-file instructions and manages run-time data areas. • The JDK includes tools such as javac and java plus standard modules. • Modern Java distributions do not always ship a separately branded public JRE product.
Example
Code
javac Main.java java Main
Quick Revision
JVM is the virtual machine specification; JDK is the full development and run-time distribution.