Since this is a common question I'll keep it short.
I use JAVARA https://singularlabs.com/software/javara/ to remove or update.
I use NINITE to cleanly install JAVA. https://ninite.com/
Bob
I uninstalled Java recently to try and fix a problem with my computer, but somehow or other the uninstallation process left some remnants in the system. Now, when I try to reinstall Java, it tells me I can't do that because, according to the setup program, a "newer build" of the version of Java I'm trying to install already exists on the system! What can I do to fix this?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic