According to the Java platform official website, the main difference between Java and JavaScript is that Java is an OOP programming language while JavaScript is an OOP programming script . JavaScript code is written completely in text and need only be interpreted. Java, on the other hand, must be compiled.
Read more