You don’t need to install Java UNLESS you have some apps that are Java-based . I do have at least one app like that, so I need it. And you can set Java NOT to enable Java content in a browser, in the Java Control Panel/Security under System Preferences. That way, only apps on your Mac that need Java can use it.