Question: what the difference between java and javascript?
Answer: Java code must be compiled, and JavaScript code is all-text. ... JavaScript code is run on a browser only, while Java creates applications that run in a virtual machine or browser. Java is an OOP (object-oriented programming) language, and JavaScript is specifically an OOP scripting language.