Saying that Java is good because it works on all platforms is like saying anal sex is good because it works on all genders.
Java is to JavaScript as ham is to hamster.
If Java had true garbage collection, most programs would delete themselves upon execution.