> Java was perceived (quite rightfully) as a C++ with the rough edges filed off.
Java has only familiar surface syntax.
Semantics has almost nothing common with C++. Different object model, memory model, execution model, ...
That's the genius of both Java and Javascript. Make it look familiar without being one at all.