To check which version of Java you have on your Windows computer, you'll need to open the Command Prompt.
To clear the Java cache, open the Java control panel, which you can find in the Windows Control Panel or in System Preferences on a Mac.
The latest Windows 11 preview build includes a fix for the infamous "update and shutdown" bug where your PC wouldn't actually shut down after installing an update.