difference between java and javascript
Answers
Answer:
Primary Differences Between Java and JavaScript=>
Both Java and JavaScript are written, assembled and executed differently, and each has dramatic differences when it comes to what it is capable of doing.
Java is used in a wide range of places, including Android apps, credit card programming and in the creation of desktop applications and web enterprise applications. By comparison, JavaScript is mainly used to make web pages more interactive. It can be used as an alternative to Flash, though most programmers will tell you that JavaScript is more popular and has more functionality than Flash. JavaScript can be used to do neat things like creating animation in HTML.
In a nutshell, when it comes to how each language is used, Java is typically used for all server side development, while JavaScript is reserved for developing client side scripts for functions like validation and interactivity. There are some other key differences:
Java code must be compiled, and JavaScript code is all-text.
Each language requires different plug-ins.
JavaScript code is run on a browser only, while Java creates applications that run in a virtual machine or browser.
Java is an OOP (object-oriented programming) language, and JavaScript is specifically an OOP scripting language
Answer:
▶Java application are run in a virtual machine or Wed browser while JavaScript is run on a wed browser. Java code is complied whereas while JavaScript code is next and in a wed page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.
Hope it's Help You ❇