Information
Apple had made Java part of the core Operating System for macOS. Apple is no longer providing Java updates for macOS and updated JREs and JDK are made available by Oracle. The latest version of Java 6 made available by Apple has many unpatched vulnerabilities and should not be the default runtime for Java applets that request one from the Operating System
Rationale:
Java has been one of the most exploited environments and Java 6, which was provided as an OS component by Apple, is no longer maintained by Apple or Oracle. The old versions provided by Apple are both unsupported and missing the more modern security controls that have limited current exploits. The EOL version may still be installed and should be removed from the computer or not be in the default path.
Impact:
Old applications may rely on either an Apple supplied version of Java 6 or an updated JDK.
Solution
Java 6 can be removed completely or, if required Java applications will only work with Java 6, a custom path can be used. Apple is likely to deprecate Java 6 in upcoming macOS versions, so any applications that still require Java 6 will soon be incompatible.