+ 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?
7 Answers
+ 15
https://www.sololearn.com/Discuss/1118042/?ref=app
https://www.sololearn.com/discuss/415432/?ref=app
https://www.sololearn.com/discuss/962273/?ref=app
https://www.sololearn.com/discuss/304537/?ref=app
https://www.sololearn.com/discuss/128284/?ref=app
https://www.sololearn.com/discuss/1017753/?ref=app
https://www.sololearn.com/discuss/1040618/?ref=app
+ 5
They are similar in name only. They are made by different people and operate in very different ways. Common question though
+ 3
They aren't similar. Javascript is a web programming language and Java isn't.
+ 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. :)))
+ 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.
+ 2
And no javascipt isn't the advanced version of java. Its true that both have are greater than each other.
+ 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/