In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge about the difference between java and javascript. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Differences: 1, JavaScript interpretation and execution by the browser, Java procedures are compiled and executed; 2, JS is an object-based scripting language, Java is a true object-oriented programming language; 3, JS is a weakly typed language, Java is a strongly typed language; 4, the code format and embedded HTML documents are not the same.
The operating environment of this tutorial: windows7 system, javascript1.8.5&&java8 version, Dell G3 computer.
Java is an object-oriented programming language developed by Sun Company, which is suitable for network application development. JavaScript (JS for short) was originally inspired by Java, and one of its purposes is to "look like Java", so it is syntactically similar to Java, and some names and naming conventions are derived from Java.
But in fact, except that JavaScript is somewhat similar to Java in syntax and the name is similar to Java for marketing purposes, other aspects are quite different from Java, mainly reflected in the following points:
1) JavaScript is interpreted and executed by the browser, while Java programs are compiled and executed.
2) JavaScript is an object-based scripting language, which provides rich built-in objects for developers to use directly; Java is a true object-oriented programming language, regardless of whether the program is simple or not, objects must be designed.
3) JavaScript is a weakly typed language, so it is not necessary to declare the type of a variable when declaring a variable, or even to directly use a variable without declaring a variable; Java is a strongly typed language, and a variable must be declared and its type must be declared before use.
4) the code format is different from the way to embed HTML documents:
Java code must be compiled into bytecode files with the appropriate compilation tools, and embedded HTML documents must be embedded using... Tags are embedded in bytecode files; JavaScript code is a text character format that is embedded in HTML documents using tags, which can be embedded either directly in JavaScript code or in JavaScript script files.
These are all the contents of this article entitled "what's the difference between java and javascript". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.