Whats the difference between Java and JavaScript? | SoloLearn: Learn to code for FREE!


Whats the difference between Java and JavaScript?

4/18/2018 9:02:16 PM

Muhammad Abdurahman

9 Answers

New Answer


Java is compiled, JS is interpreted Java is heavily object oriented, JS has no classes Java is general purpose, JS is exclusive to the web or desktop apps with frameworks Java is statically typed, JS is dynamically typed


Java is an OOP programming language while javascript is a OOP scripting language. JavaScript is used to make web pages interactive and runs on clients computer/browser.  Java creates applications that run in a virtual machine or browser while html code is run on a browser. The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. Java code needs to be compiled and javascript is a interpreted language so doesn't need to be compiled. java is used for creating application for desktop as well as websites. Java is used in the form of servlets, JSP(Java Server Pages), Java beans and many other frameworks in web development. Java can be used for handle connections to databases, manipulating data to be displayed etc. https://www.java.com/en/download/faq/java_javascript.xml


Thanks so much for the like storm man .... Take care and have a great weekend


Elizabeth thx very much for the answer


TurtleShell Thx for the simple explanation


rui pedro thx


JavaScript is a Scripting Language,while Java is a Programming Language.


java is manly used for mobile apps and mobile games JavaScript is used for websites