+ 7
What are the differences between java and java script ?
Java & Java Script
8 Answers
+ 4
Key differences between java and java script
- Java is an OOP programming language while JavaScript 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.Â
-Javs code needs to be compiled while Javascript code are all in text.
+ 2
java script is used for web pages to make text box buttons etc while java is used to make full application that's the short explanation
+ 1
This is a potential interview question :) .
Java - It is a programming language used for creating desktop applications or others. To compile java based programs you need JDK+JRE set up in your computer. Since java is pure object oriented programming language everything you do is under a class.
On the other hand, Javascript is a client side programming language. You don't need anything except a browser for running a script. In javascript everything is objects/functions. There is no concept of classes.
When I was trying to study same difference I went to this link: -http://crbtech.in/Java-Training/9-distinguishing-factors-javascript-java/
+ 1
Java is a statically typed language; JavaScript is dynamic.
Java is class-based; JavaScript is prototype-based.
Java constructors are special functions that can only be called at object creation; JavaScript "constructors" are just standard functions.
Java requires all non-block statements to end with a semicolon; JavaScript inserts semicolons at the ends of certain lines.
Java uses block-based scoping; JavaScript uses function-based scoping.
0
- Javascript only run on web browser
- Java runs everywhere
0
The language java was a huge success for the developers and every programm or game was made with java fe Minecraft.
It was like a trend
And so the developers of js decided to call it javascript, so that it gets something of Javas popularity.
0
The reason that Java as in Java and Javascript is common because the person who made livescript thought that this livescript object oriented nature very much matches with Java... Hence the name Javascript