Java is not required and is not preinstalled in OS X. There are 2 sides to Java. The web browser plug-in/extension – this is the BAD form, as it has been nothing but security holes.
Should I uninstall Java 2020?
We highly recommend that you uninstall all older versions of Java from your system. … Uninstalling older versions of Java from your system ensures that Java applications will run with the latest security and performance improvements on your system.
Should I delete Java?
For systems with Java installed, when the periodic updater runs to look for security patches and new versions of Java it will not only recommend old versions are uninstalled but if Java has not been used for 6 months, it will recommend to the user that they uninstall Java completely from the device.