Common Misconceptions about Java

Source: Internet
Author: User

Myth One: JavaScript is a simple version of Java

JavaScript is a scripting language used in Web pages, and its original name is LiveScript. JavaScript is similar in syntax to Java. Besides, they have nothing to do with it. A subset of JavaScript has been normalized to ECMA-262, which is more tightly integrated with the browser.

Myth Two: All Java programs are run in a Web page

Strictly speaking, it should be that all Java applets are running on the page. Applets are Java programs that run in a browser, but most Java programs are standalone applications that run outside of a Web browser.

Myth Three: Java programs are a major security risk

Early in the development of Java programs, people have brought quite a lot of surprises. Simplicity, object-oriented, portability, and so on, Java's attitude toward downloading code is less cautious. Java makes it easy to get out of the sandbox, even when it encounters the non-trusted code. This way, when untrusted code executes in a sandbox environment, it does not affect the primary system.

However, shortly after the release of the first version of the JDK, some of Princeton's security experts discovered that small bugs would allow untrusted code to attack the main system. It has also been attacked by hackers for some time. Sun and later Oracle spent a tough time fixing bugs. After that, the Java browser plugin no longer trusts remote code unless the code is digitally signed and the user agrees to execute the code.

Myth Four: Java is an extension of HTML

Java is a programming language; HTML is a way of describing the structure of a Web page.

Myth Five: Use XML, so Java is not required

Java is a programming language; XML is a way of describing data. XML data can be processed in many programming languages, and the Java API provides good support for XML processing.

Myth Six: Java is easy to learn

Powerful languages like Java are mostly not easy to learn, and it takes time and experience to sharpen them.

Welcome to Add. 2017-05-27 18:40:12

Common Misconceptions about Java

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.