+ 4

Difference between Java and JavaScript!

What is the difference between Java and JavaScript?..Is JS the advanced version of java?..Are they similar in some ways?

7th Mar 2018, 10:27 PM
Aslam Mohd
Aslam Mohd - avatar
7 ответов
+ 5
They are similar in name only. They are made by different people and operate in very different ways. Common question though
7th Mar 2018, 11:06 PM
Dan Walker
Dan Walker - avatar
+ 3
They aren't similar. Javascript is a web programming language and Java isn't.
7th Mar 2018, 10:32 PM
Tomer Shechner
Tomer Shechner - avatar
+ 3
These languages couldn't be compared, cause they have no common aspect. The creator of JS loved Java, so he called this language so in a kind of homage. Oh there is a common aspect: a world without both of them isn't possible. :)))
8th Mar 2018, 1:36 PM
Heinrich Weber
+ 2
There is similarities in name only, these are totally different. Java is used for developing computer applications, and famously for android applications, and many more. It's independent, don't depend on other languages to function. Java script can be used with HTML only. It's the logic of web applications Though, its also extremely useful and famous.
8th Mar 2018, 5:40 AM
Harsh Raj
Harsh Raj - avatar
+ 2
And no javascipt isn't the advanced version of java. Its true that both have are greater than each other.
8th Mar 2018, 5:42 AM
Harsh Raj
Harsh Raj - avatar
+ 2
1.Environment to execute: Initially speaking, the distinction amongst Java and JavaScript is that Java is compilation + interpretation language, Java code is initially compiled aggregated into class files containing byte code and than executed by JVM, then again JavaScript code is specifically executed by the browser. One more contrast which comes from this reality is that, Java is executed inside JVM and requires JDK or JRE for running, on there other hand JavaScript keeps running inside browser and verging on each present day program underpins JavaScript 2.OOP: Java happens to be Object Oriented Programming language, and however JavaScript likewise bolsters class and object, it’s more similar to an OO scripting language. It’s much less demanding to structure code of extensive endeavor application in Java then JavaScript. Java gives packages to aggregate related class together, gives much better implementation control utilizing JAR, WAR and EAR also 3.Constructors: Java has idea of constructors, which has some extraordinary properties e.g. constructor chaining and guaranteeing that super class constructor keeps running before sub class, then again JavaScript constructors are simply one more function. There is no extraordinary standards for constructors in JavaScript e.g. they can’t have return type or their name must be same as class 4.NullPointerException: JavaScript is considerably more sympathetic than Java, you don’t have NullPointerException in JavaScript, your variable can acknowledge various types of data on account of JavaScript is powerfully written language See more in detail:- http://crbtech.in/Java-Training/9-distinguishing-factors-javascript-java/
8th Mar 2018, 7:18 AM
pranit patil
pranit patil - avatar