Follow the below steps to update JDK to the latest version.
Click on the Windows start button > Settings > Control Panel
Now, in the Control panel list, click on the Java icon
Select the Update tab then click the Update Now button
Click Yes to allow changes