JDK vs JRE vs JVM
Let’s look at some of the important differences between JDK, JRE, and JVM.

JDK is for development purpose whereas JRE is for running the java programs.
JDK and JRE both contains JVM so that we can run our java program.
JVM is the heart of java programming language and provides platform independence.