Home > Web Front-end > Front-end Q&A > Will javascript replace Java?

Will javascript replace Java?

藏色散人
Release: 2023-01-07 11:41:59
Original
2012 people have browsed it

javascript will not replace Java, and there is no replacement, because javascript and Java are completely different concepts; JavaScript is a lightweight programming language, and Java is executed through interpretation. language.

Will javascript replace Java?

The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer.

Will javascript replace Java?

javascript will not replace Java, and there is no substitution here, because javascript and Java are completely different concepts.

In addition to looking similar to Java, JavaScript has a very different language style. JavaScript was designed with reference not to Java, but to languages ​​like Self and Scheme.

Difference:

Due to the similarity in the names of JavaScript and Java languages, most students think that JavaScript and Java languages ​​have a certain correlation. But they are not as closely related as we think, and it is even safe to say that they are very different.

1. Languages ​​are essentially different.

JavaScript is a lightweight programming language that is programming code that can be inserted into HTML pages. After being inserted into HTML pages, it can be executed by all modern browsers.

Java is a language that is executed through interpretation.

2. The data types are different.

Java data types include: int, double, char, Boolean, etc.

JavaScript data types include: number, string, Boolean, etc.

3. The application scope is different.

Java is widely used on PCs, mobile phones, the Internet, data centers, etc.

JavaScript is mainly used to embed text into HTML pages, read and write HTML, control cookies, etc.

To sum up, we can find that although JavaScript and Java can both be applied to web design, they are actually two languages.

Recommended study: "javascript Advanced Tutorial"

The above is the detailed content of Will javascript replace 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