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