Yes, it’s not only safe to remove Java, it will actually make your PC safer . Java has long been one of the top security risks on Windows, partly because many users still had old versions on their PCs. This was because of bad update policies from Sun and, later, Oracle.
Read moreIs Java safe for Mac OS?
Java SE v6 and earlier are end of life and are no longer supported/updated . If you are running Mac OS X 10.6 or earlier you are recommended to disable Java and read up on securing older operating systems.
Read moreDo I still need Java on my Mac?
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.
Read more