What is the difference between JDK and JRE?
What are their roles and when should I use one or the other?
jdk is necessary to compile to code and convert java code to byte codes while jre is necessary for executing the byte codes.