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