Home > Java > javaTutorial > body text

Summarize 6 common misunderstandings about Java

零下一度
Release: 2017-06-01 09:43:20
Original
1563 people have browsed it

The editor below will bring you a summary of common misunderstandings about Java (take a look). The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.

Misunderstanding 1: JavaScript is a simplified version of Java

JavaScript is a A scripting language used in web pages, its original name is LiveScript. The syntax of JavaScript is similar to Java. Other than that, they have no relationship. A subset of JavaScript has been standardized as ECMA-262, which integrates more tightly with browsers.

Misunderstanding 2: All Java programs run on web pages

Strictly speaking, all Java applets should runs on the page. An applet is a Java program that runs in a browser, but most Java programs are independent applications that run outside of a Web browser.

Misunderstanding 3: Java programs are the main security risk

In the early days, the development of Java programs brought quite a lot of surprises to people . Simplicity, object-oriented, portability, etc., Java is not so cautious about downloading code. Even if you encounter untrusted code, Java makes it easy to escape the sandbox. In this way, when untrusted code is executed in a sandbox environment, it will not affect the main system.

However, not long after the first version of the JDK was released, some security experts from Princeton University discovered that some small bugs would allow untrusted code to attack the main system. It has also been attacked by hackers over a period of time. Sun, and later Oracle, had a very difficult time fixing bugs. Afterwards, the Java browser plug-in no longer trusts remote code unless the code is digitally signed 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 of describing the structure of a web page.

Misunderstanding 5: 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 Java API provides good support for XML processing.

Misunderstanding 6: Java is easy to learn

Most powerful languages ​​like Java are not easy to learn. If you want to keep improving, you must learn more. It takes time and experience to polish.

[Related recommendations]

1. Detailed introduction to the summary of common problems in Java programming

2. Summary of personal understanding of Java affairs

3. Detailed introduction to the strategy pattern of Java design patterns

The above is the detailed content of Summarize 6 common misunderstandings about Java. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!