What is the difference between JDK and JRE?
What are their roles and when should I use one or the other?
Simply :
JVM is the virtual machine Java code executes on
JRE is the environment (standard libraries and JVM) required to run Java applications
JDK is the JRE with developer tools and documentation