What is the difference between a JDK and a JVM?


Ans: JDK is Java Development Kit which is for development purpose and it includes execution environment also.
But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.