+ 1
[DUPLICATE] What is the difference between java and java script
application difference and basic techniques of two
2 Answers
0
Javascript runs on websites, it is good for handling logic and isn't strongly typed, by that I mean the variable keyword is var and every variable is determined by the engine.
For Java you can create standalone applications that can run on any platform. Java is strongly typed, meaning that if you want to instanitate a variable of type int you would have to declare as follows:
int a = 10;
where as js is
var s = 10;
JS -> web logic
Java -> standalone application
0
Major difference is JavaScript being a scripting language runs on a web browser and is used in many disciplines such as web applications, mobile apps , whereas java is a programming language which is used in software development most of the times



