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

What do java and javascript mean?

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

Share

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

Today, I will talk to you about the meaning of java and javascript. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

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

What are java and javascript?

Java and JavaScript are two different programming languages.

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 that are difficult to understand in C++, so Java language has two features: 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.

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

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

What they have in common include:

Their syntax and C language are very similar.

They are all object-oriented (although implemented in a slightly different way)

JavaScript refers to the naming rules of Java when designing.

Their differences include:

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

JavaScript is weakly typed and Java is strongly typed.

The object-oriented implementation of JavaScript is based on prototype-based, and Java is based on class-based.

The language style of JavaScript is very different except that it looks like Java.

The objects that JavaScript refers to at design time do not include Java, but include languages such as Self and Scheme.

After reading the above, do you have any further understanding of what java and javascript mean? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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: 0

*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