You can install OptiFine for free by downloading it from the official website, opening the file, and then launching "Minecraft." ...
To check which version of Java you have on your Windows computer, you'll need to open the Command Prompt.