+ 2
What is the difference between Java and JavaScript?
Just started coding. Need tips.
4 Réponses
+ 45
Java is an OOP programming language while javascript is a OOP scripting language.
JavaScript is used to make web pages interactive and runs on clients computer/browser.
Java creates applications that run in a virtual machine or browser while html code is run on a browser.
The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform.
Java code needs to be compiled and javascript is a interpreted language so doesn't need to be compiled.
java is used for creating application for desktop as well as websites. Java is used in the form of servlets, JSP(Java Server Pages), Java beans and many other frameworks in web development. Java can be used for handle connections to databases, manipulating data to be displayed etc.
https://www.java.com/en/download/faq/java_javascript.xml
+ 3
Thanks.
+ 2
java programmation language for apps desktop and java script for apps web
+ 2
the similarities between java and javascript is same as the similarity between the words car and carpet. both the languages are cross platform, but java code runs in a JVM environment and javascript code runs in a browser or node.js. java code is first converted into byte code which later euns on jvm while node.js follows a JIT compilation.