If an app or webpage you want to use asks you to install Java software, you can download the current version of Java for OS X directly from Oracle's website.
Note: You can also download legacy Java SE 6 from Apple if you’re using an app that specifically requires this unsupported, out-of-date version.
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Risks are inherent in the use of the Internet. Contact the vendor for additional information. Other company and product names may be trademarks of their respective owners.