Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is javascript a java?

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail whether javascript is java. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Javascript does not count java,javascript and java are two completely different concepts: 1, javascript is a scripting language, its design is mainly affected by Self and Scheme; 2, Java is an object-oriented programming language, can write desktop applications, and so on.

This article operating environment: Windows7 system, javascript1.8.5 version, DELL G3 computer

Javascript, excluding java,javascript and java, are two completely different concepts. JavaScript and Java have many similarities in name or syntax, but the two programming languages are very different from the beginning of their design. The language design of JavaScript is mainly influenced by Self (a prototype-based programming language) and Scheme (a functional programming language). It also has many similarities with C language in syntax structure (such as if conditional statement, switch statement, while loop, do-while loop, etc.).

Let's take a look at the history of the formation of javascript to see whether javascript is considered java.

In 1993, the national supercomputer Tencent App Center (NCSA) published NCSA Mosaic, the earliest popular graphical interface web browser, which played an important role in the popularity of the World wide Web. In 1994, the main developers of Mosaic immediately founded Netscape and hired many former NCSA Mosaic developers to develop Netscape Navigator. The company aims to replace NCSA Mosaic as the world's number one web browser. In four months, it has occupied 3/4 of the browser market and became the main browser of the Internet in the 1990s. Netscape foresees the need for the network to become more dynamic. Mark Anderson, the company's founder, believes that HTML needs a glue language that web designers and part-time programmers can easily use to assemble components such as images and plug-ins, and the code can be written directly in web tags.

In 1995, Netscape recruited Brandon Ike with the goal of embedding the Scheme language into Netscape Navigator browsers [13]. But earlier, Netscape had partnered with Shenyang to support Java in Netscape Navigator, and there was a heated debate within Netscape [14]. Netscape later decided to invent an auxiliary scripting language for use with Java with a syntax somewhat similar [15], a decision that led to the exclusion of existing languages such as Perl, Python, Tcl, or Scheme. To defend the idea of JavaScript in other competitive proposals, the company needs a working prototype. It took Ike only ten days to design the prototype in May 1995.

Originally named Mocha, it was renamed LiveScript in the Beta version of Netscape Navigator 2.0 in September 1995, and was renamed to JavaScript when it was deployed in Netscape Navigator 2.0 Beta 3 in December of the same year. At that time, the development alliance formed by Netscape and Shenyang computer Company in order to match the language with the "hot word" of Java programming language, so it was temporarily renamed JavaScript, which later became one of the reasons for many misunderstandings about the language.

Introduction to java:

Java is an object-oriented programming language, which not only absorbs the advantages of C++ language, but also abandons the concepts of multi-inheritance and pointers which are difficult to understand in C++, so Java language has two characteristics: powerful and easy to use. As the representative of static object-oriented programming language, Java language perfectly implements the object-oriented theory and allows programmers to carry out complex programming in an elegant way of thinking.

Java has the characteristics of simplicity, object-oriented, distributed, robust, security, platform independence and portability, multithreading, dynamic and so on. Java can write desktop applications, Web applications, distributed systems, embedded system applications and so on.

This is the end of the article on "is javascript java?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 222

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report