The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. In other words, it is a bundle of software that you can use to develop Java based applications. JDK mainly includes the following components :
Java Runtime Environment (JRE)
Interpreter/Loader (Java)
Compiler (javac)
Archiver (jar)
Javadoc
Navigate to the official website of Oracle and download the latest version of JDK for your machine.
After the installation of JDK, open the command prompt and type command java -version. If you see the following screen you are good to move to the next step.
Now, download the IDE (Eclipse, IntelliJ, NetBeans) of your choice for writing the Java code..