Common Java misunderstandings

Source: Internet
Author: User

Common Java misunderstandings

Misunderstanding 1: JavaScript is a simple Java version.

JavaScript is a scripting language used in Web pages. Its original name is LiveScript. The syntax of JavaScript is similar to that of Java. They have nothing to do with it. A subset of JavaScript has been standardized as a ECMA-262, which is more closely integrated with browsers.

Misunderstanding 2: All Java programs run on webpages

Strictly speaking, it should be that all Java applets are running on pages. Applet is a Java program running in the browser. However, most Java programs are independent applications running outside the Web browser.

Misunderstanding 3: Java programs are the main security risks

In the early days, the development of Java programs brought many surprises. Simplicity, object-oriented, portability, and so on. Java is not so cautious about downloading code. Even if you encounter Untrusted code, Java makes it difficult to break away from the sandbox. In this way, the primary system is not affected When untrusted code is executed in the sandbox environment.

However, shortly after the release of the first JDK version, some security experts at Princeton University discovered some small bugs that allowed Untrusted code to attack the main system. Within a period of time, it was also attacked by hackers. Sun and later Oracle had a hard time fixing bugs. After that, the Java browser plug-in no longer trusts remote code unless the Code has a digital signature and the user agrees to execute the code.

Misunderstanding 4: Java is an extension of HTML

Java is a programming language; HTML is a way to describe the webpage structure.

Misunderstanding 5: XML is used, so Java is not required

Java is a programming language; XML is a way to describe data. XML data can be processed in many programming languages, while Java APIs provide good support for XML processing.

Misunderstanding 6: Java is easy to learn

A powerful language like Java is not easy to learn. It takes more time and experience to keep improving.

Please add. 18:40:12

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.