It's not that there is a problem with Java as such, but that it allows programs (Applets) to be downloaded and run automatically via your browser.
They were supposed to have limited access to your system, but that is where the vulnerability lies - this protection can be broken.
So, by visiting a webpage, it is possible to have a program run automatically that could do just about anything it liked with your computer.
In more recent versions, Applets need explicit permission to run every time. If you allow an applet to run, you should be sure that you trust the website it is hosted on - in the same way that you should be sure that you trust the publisher before you download and run any software.
If you need the Java runtime installed to support some program, then to be safe you can completely disable Java content in the browser (this is enabled by default when you install Java). On Windows, this option is in the Security settings of the Java Control panel.
They were supposed to have limited access to your system, but that is where the vulnerability lies - this protection can be broken.
So, by visiting a webpage, it is possible to have a program run automatically that could do just about anything it liked with your computer.
In more recent versions, Applets need explicit permission to run every time. If you allow an applet to run, you should be sure that you trust the website it is hosted on - in the same way that you should be sure that you trust the publisher before you download and run any software.
If you need the Java runtime installed to support some program, then to be safe you can completely disable Java content in the browser (this is enabled by default when you install Java). On Windows, this option is in the Security settings of the Java Control panel.