Is JAVASCRIPT and JAVA are same?

 Javascript and Java are not the same programming language, this is the short answer to the answer, But how they are different from each other. 

Difference between Java and JavaScript

Difference between Java and JavaScript
Written Different between javascript and java. 


JavaJavascript
Java is an object-oriented programming language.JavaScript is an object-based scripting language.
Java applications can run in any virtual machine(JVM) or browser.JavaScript code used to run only in the browser, but now it can run on the server via Node.js.
Objects of Java are class-based even we can’t make any program in java without creating a class.JavaScript Objects are prototype-based.
Java program has the file extension “.Java” and translates source code into bytecodes which is executed by JVM(Java Virtual Machine).JavaScript file has the file extension “.js” and it is interpreted but not compiled, every browser has the Javascript interpreter to execute JS code.
Java is a Standalone language.contained within a web page and integrates with its HTML content.
Java program uses more memory.JavaScript requires less memory therefore it is used in web pages.
Java has a thread-based approach to concurrency.Javascript has an event-based approach to concurrency.
Reactions

Post a Comment

0 Comments