difference between java and javascript

Java
java is virtualised and compiled while javascript isn't.
javascript and java aren't that similar apart from beign 
both OOP./*
JavaScript: Easier to learn and run, runs in browser,
not strictly object-orientated, mainly client-side.

Java: More secure, strict OOP, steeper learning curve, 
used literally everywhere, needs to be compiled.
*/
Source

Also in Java: