+ 2
What is the main difference between Java and JavaScript?
I want to start java, but first i want to know the main diffeence between Java and JS.
3 Answers
+ 1
The main difference is that Java is a compiled language.
+ 1
The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform.
JavaScript does not create applets or stand-alone applications. In its most common form, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.
Key differences between Java and JavaScript:
-Java is an OOP programming language while Java Script is an OOP scripting language.
-Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
-Java code needs to be compiled while JavaScript code are all in text.
-They require different plug-ins.
see here in details: - http://crbtech.in/Java-Training/9-distinguishing-factors-javascript-java/
0
Java
- Statically and strongly typed
- Is a compiled language
- Is heavily object oriented
- Used in many fields, mainly enterprise
Javascript
- Dynamically and weakly typed
- Interpreted language
- Doesnât have classes
- Used primarily on the web but also on desktop applications with frameworks
If you donât know what any of these terms mean google them.