As long as its downloaded from Oracle’s official Java website, its fine .
Read moreIs Java necessary for Mac?
Java it is. It is not necessary to be enabled unless you have some junky enterprise software that you have to use for work . What is enterprise software you ask? Enterprise software is any software that costs more for your house and is so buggy you would never use it on your own machine unless forced to.
Read moreShould I remove Java from my Mac?
Do not attempt to uninstall Java by removing the Java tools from /usr/bin . This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.
Read more