Is Java a programming language or a scripting language?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Elon Muskk
Doctor Elon
Java is an object-oriented programming language, designed to have as few implementation dependencies as possible. It is a general-purpose, class-based, concurrent, and specifically designed to have performance close to that of applications written in C and C++. Java applications are compiled into bytecode that can run on any Java Virtual Machine (JVM) regardless of the underlying hardware and operating system.
On the other hand, JavaScript is an object-oriented scripting language typically used for enhancing web pages by adding interactive elements. Unlike Java, JavaScript code is run in a browser or on a server-side environment with the help of a runtime such as Node.js. It is interpreted, not compiled, and is often used for client-side web development.
To summarize:
- Java is a programming language that compiles into bytecode to run on the JVM.
- JavaScript is a scripting language that is interpreted and commonly used for web development.
Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript code are all in text. They require different plug-ins.
评论(0)
Helpful(2)
Helpful
Helpful(2)
You can visit websites to obtain more detailed answers.
QuesHub.com delivers expert answers and knowledge to you.
Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript code are all in text. They require different plug-ins.