Java is a programming language that's used to install and run programs. Chances are that there are already several programs on your Windows computer that run using Java, even if you don't know it.
Java4Shell (CVE-2026-114938) hits Java 17, 21, 25 and 27. Run java -version, compare with the fixed builds (17.0.21.1, ...