Initially, download JAVA by clicking the link -> Java Link
Step-2
Click on "JDK and JRE Download buttons" as shown in the figure.
Step-3
Now click on the checkbox "Accept the licence agreement" as shown below.
Step-4
Download the links as per the operating system on the computer.The process of downloading for Windows OS is shown below.
Step-5
Now open the downloaded link and click on Next as shown below.
If needed one can change the destination folder and click on Next.
Step-6
Java is now installed and one need to set the classpath.To set the path,go to
My Computer->Advanced system settings->Environment Variables->NewFollow the below figure which shows step-by-step procedure.
Give the variable name as "PATH"
Variable value as "C:\Program Files\Java\jdk1.8.0_65\bin" (destination folder of java)
Step-7
To develop any Java program, any of the text editor is needed.Any text editor like Notepad,Eclipse,NetBeans etc can be used.Eclipse IDE can be downloaded from Eclipse Link