You'll find it more useful to have java than not to have it, otherwise you'll come across something that you need the Java RE installed to run.
Viruses in the cache are pretty common and not too much of a threat, however you can turn off the cache - this will make running java apps a tad slower but if it eases your mind:
control panel > java plug in > cahce
and then uncheck the enable caching box
done.