Beginner's understanding: JavaScript and Java are two completely different languages

Source: Internet
Author: User
Tags requires client
Javascript| Beginners

JavaScript is a descriptive language that can be embedded in HTML files. JavaScript can be used to respond to user demand events (such as form input), so that when one user enters a message, it does not need to be sent over the network to the server to handle the process of return, but can directly on the client to deal with the event. You can also imagine that there is an executable program that executes on your client (but the execution is limited, and it has very poor control over the client computer)!

JavaScript and Java are very similar, but they are completely different languages! Java is an object-oriented programming language developed by Sun Microsystem, similar to C + +, which requires a variety of compilers and supporting files to run, but unlike C + +, Java can be independent of any operating platform, so it is on the Internet today Network of various operating platforms on the basis of rapid development. But it is a much more complex standard programming language than JavaScript. JavaScript is a relatively easy to understand functional language, JavaScript creators can be less focused on programming skills, such as declaring all variables, classes and methods, you do not have to care about such as public, private or protected, such as inexplicable things; More importantly, it can only exist in an HTML script and can only run when a compatible browser is loaded, so many Java features are not supported in JavaScript. Now, JavaScript is divided into three categories: core, client, and server-side JavaScript, and I only cover the client's JavaScript 1.3 in this tutorial, which is completely compatible with the ECMA-262 standard (the JavaScript standard of the European Computer Manufacturers Association); For more information, see Netscape's Introduction to Netscape JavaScript (Microsoft also has a variant of JavaScript, called JScript, which I'll introduce later). There are already a lot of written JavaScript code on the Internet for your reference, and this site will continue to refine and develop it.

An applet is a small program that requires compilation to execute. is a class.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.