Before proceeding with the actual coding, we need to understand first what we gonna need to run and compile java program. We will need two things a facility to compile and run java programs. So basically we will gonna need a JRE and JDK.
Before we go in the technical details in our java installation we have to know what is the difference between a JRE and JDK. What we need to have?
Lets discuss first what is JRE
JRE – stands for Java Runtime environment which is the Java Virtual Machine where your Java programs run on. It also includes browser plugins for Applet execution
Now we know what is JRE, lets discuss what is JDK
JDK – stands for Java Development Kit which is fully featured software bundles in developing java programs. It includes JRE, compilers, and tools like JavaDoc and Java Debvgger).
Usually, when we only care about running Java programs on browser or computer, we will only install JRE. It’s all we need. On the other hand, if we are planning to do some Java programming, we will also need JDK.