Java viruses ? should I still enable java

when my hard drive crashed, it found several java viruses so now on some sites I need to have them running but I’m afraid of having viruses again. Do any of you experience java viruses ?