Is javascript java?

青灯夜游
Release: 2021-10-18 13:59:22
Original
7183 people have browsed it

javascript is not java. JavaScript and Java are two completely different language architectures. JavaScript is a dynamically typed and weakly typed language; Java is a statically typed and strongly typed language.

Is javascript java?

The operating environment of this tutorial: windows7 system, javascript1.8.5&&java8 version, Dell G3 computer.

Javascript is not java, they are two completely different things. Although Java and JavaScript are both programming languages, they are two completely different language architectures.

Java is a new generation of object-oriented programming language and a programming language launched by SUN Company, which is particularly suitable for Internet application development. It is an interpreted language with syntax rules similar to C.

JavaScript is a product of Netscape. Its purpose is to extend the functions of Netscape Navigator and develop an object-based and event-driven interpreted language that can be embedded in Web pages; it is a compliance with the ECMA 262 language specification. A realization.

The similarities between javascript and java include:

  • Their syntax is very similar to C language;

  • They are all object-oriented (although the implementation methods are slightly different);

  • JavaScript is designed with reference to Java’s naming rules;

The differences between javascript and java include:

  • JavaScript 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), and Java is based on Class-based;

JavaScript except that it looks similar to Java, has a very different language style. JavaScript was designed with reference not to Java, but to languages ​​like Self and Scheme.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of Is javascript java?. 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