Home > Web Front-end > Front-end Q&A > java what is javascript

java what is javascript

藏色散人
Release: 2022-01-11 15:15:30
Original
2429 people have browsed it

java and javascript are two different programming languages; java is an object-oriented programming language with two characteristics: powerful and simple to use, while javascript is a lightweight function-first language. Interpreted or just-in-time compiled programming languages.

java what is javascript

The operating environment of this article: Windows 7 system, javascript1.8.5, Dell G3 computer.

java What is javascript?

Java and JavaScript are two different programming languages.

Introduction to Java: Java is an object-oriented programming language that not only absorbs the various advantages of the C language, but also abandons the incomprehensible multiple inheritance, pointers, etc. in C Concept, so the Java language has two characteristics: powerful and easy to use. As a representative of static object-oriented programming languages, Java language perfectly implements object-oriented theory and allows programmers to perform complex programming with an elegant way of thinking. Java has the characteristics of simplicity, object-oriented, distributed, robustness, security, platform independence and portability, multi-threading, and dynamics. Java can write desktop applications, Web applications, distributed systems and embedded system applications, etc.

Introduction to JavaScript: JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled programming language with function priority. Although it is famous as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is based on prototype programming, a multi-paradigm dynamic scripting language, and supports object-oriented, imperative, declarative, and functional programming paradigm.

It is generally believed that the reason why Netscape named LiveScript JavaScript at that time was because Java was the most popular programming language at the time, and the name with "Java" helped the spread of this new language.

Their similarities include:

Their syntax is very similar to the C language;

They are all object-oriented (although the implementation The method is slightly different);

JavaScript was designed with reference to Java’s naming rules;

Their differences include:

JavaScript It is a dynamically typed language, while Java is a statically typed language;

JavaScript is weakly typed, and Java is strongly typed;

JavaScript's object-oriented implementation is based on prototype (prototype-based) , Java is class-based;

Except that JavaScript looks similar to Java, its language style is very different.

The objects that JavaScript was designed to refer to did not include Java, but included languages ​​like Self and Scheme.

Recommended study: "JS Basic Tutorial"

The above is the detailed content of java what is javascript. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template