Thanks Guys, why do apps need Java??
Dave
What you download is something called JRE, Java Runtime Environment
Java is a programming language, it is platform independent, that means you can run java programs on windows and (for example) linux.
In order to make the programs you write work you need something to sit between your program and the operating system of the machine so you can do stuff like access disk drives and so on - thats what the JRE does.
Microsoft have something (sort of) similar in the .Net framework, you can use a .Net language (like C#) to write an application, when you run your app it uses the .Net framework to interact with the operating system. There are differences in the actual way .net and JRE work but technicalities aside it roughly does the same job.
The advantage that .Net has is its installed on pretty much every windows PC out there.
Java has been around since the mid 90s, originally it was aimed at large business solutions (we call this "enterprise" nowadays).
When you see a webpage using java its because the webpage has something called a java applet on it.
An applet is basically a small program. The problem with them is that they run outside of the browser process and use the JRE. This is dangerous because the applet
might get full access to the machine - install software, scrape the hard disk for identity info - whatever.
Recently the JRE and applets especially have been found to have lots and lots of vulnerabilities, these duly get patched but applets are basically seen as bad news and should be avoided as much as possible.
The problems have started to affect the enterprise :
http://www.computerweekly.com/news/2240181037/Enterprises-abandon-Java-due-to-security-holes do a search for "java security" or "java vulnerabilities" and you'll find a whole host of problems.
In short Java is becoming a bit old and creaky, its insecure and (imho) has had its time. It'll be around for a while because there are lots of legacy systems that are written in it. Oracle own java after they purchased sun microsystems - opinion on if this is a good thing or not is very divided.
If you must install the JRE I would disable it in your browser (see
http://krebsonsecurity.com/how-to-unplug-java-from-the-browser/ for example), so nothing can run without your explicit permission to do so. This might be a pain in the backside but its safer.
Preferably avoid installing it completely.