Practically the only similarity between Java and JavaScript is the word "Java". The two languages have almost nothing to do with each other, aside from the fact that each language's syntax is loosely based on C.
The confusion between Java and JavaScript is not a pet peeve of mine. It's just an example of stupid naming, because the name causes so much confusion. The separation of the single word Java-Script (without the freakin' hyphen) into two words, Java Script, is just strange looking to me because it's never written that way except on message boards that force the separation between the two.