Some people are worried that turning off Java will not turn off JavaScript. JavaScript is generally built in to your browser and is used to control the look, feel and function of web pages. Java is a software package installed separately from your browser. JavaScript can be used for creating and running all sorts of regular-style software: web servers, code editors, word processors and much more. Java also provides a plugin system that allows stripped-down Java programs called applets to run inside your browser. They arent integrated with your browser like JavaScript programs, and their security generally depends on the Java system.”]
Source: https://nakedsecurity.sophos.com/2013/01/16/java-is-not-javascript-tell-your-friends/

