There is some confusion.
(like pencils and pencil skirts)
Java is used to write applications, which are programs that run in the OS and are safe and have nothing to do with the current scare. Java is also used to write applets, which are programs that run within a browser. The security container for applets has been breached by hackers. You want to turn off Java applets in your browser.