Part A: Directly download from the website
Step 1: Download JDK from the Oracle website compatible with your Operating system.
Step 2: Click on Accept License Agreement and download the software.
Step 3: Just click next to continue. Choose the path where you want to install it.
Step 4: Check if it is properly installed on or not. Press Windows + R or click on start and type 'Run'. Type cmd on it. OR Press 'Shift+Right Click on desktop' and select 'Open command window here'.
