Why is Java important to the Internet?

Source: Internet
Author: User
Why is Java important to the Internet-general Linux technology-Linux programming and kernel information? For more information, see. Internet makes Java the most popular programming language on the Internet. At the same time, Java has a profound impact on the Internet. The reason is quite simple: Java extends the world of objects that can flow freely in a hundred spaces. In the network, two types of objects are transmitted between the server and the PC: passive information and dynamic and active programs. For example, when you read emails, you are reading passive data. Even when you download a program, the code of the program is also passive data until you execute it. However, another type of objects that can be transmitted to a PC is dynamic and self-running programs. Although these programs are active proxies on the client, they are initialized by the server. For example, the program used by the server to correctly display the data transmitted by the server.
Online programs are quite dynamic, but they also show serious flaws in security and portability. Before the emergence of Java, half of the objects and entities in the current competition could not enter the online world. Java opened the door to convenience for them, in addition, a new program form is defined in this process: applet (small application ).
1. Java small applications and Applications
Java can be used to generate two types of programs: applications and Java applet ). Applications can run in the operating system of your computer, applications compiled using Java are more or less similar to those compiled using C or C ++. When creating an application
There is no big difference in computer languages. The importance of Java lies in its ability to compile small applications. Small applications are applications that can be transmitted over the Internet and run in Java-compatible Web browsers. A small application is actually a small Java program that can be dynamically downloaded over the network like image files, sound files, and video clips. An important difference between a small application and other files is that, A small application is an intelligent program that can respond to user input and dynamically change, rather than playing the same animation or sound over and over again.
If Java cannot solve two of the most challenging issues about small applications: security and portability, then small applications won't be so exciting. Before proceeding to the next topic, Let's explain the meanings of the following two terms on the Internet.
Ii. Security
As you know, every time you download a "normal" program, you are at risk of virus infection. Before the emergence of Java, most users do not often download executable program files; even if the programs are downloaded, virus checks are required before running them. Despite this, most users still worry that their systems may be infected with viruses. In addition to viruses, other malicious programs must be vigilant. This type of malicious program collects your personal information by searching the content of your computer's local file system, such as your credit card number, bank account settlement, and password. Java provides a firewall between network applications and your computer, eliminating these concerns.
When using a Java-compatible Web browser, you can safely download small Java applications without worrying about virus infection or malicious attempts. Java implements this protection function by limiting the Java program to the Java Runtime Environment and disallowing it to access other parts of the computer. The following describes how this process is implemented. Download a small Application
It is one of the most important aspects of Java to ensure that it does not harm the security of the client.
Iii. Portability
As discussed earlier, many types of computers and operating systems are connected to the Internet. To enable dynamic download of the same program from various platforms connected to the Internet, you must have the ability to generate portability Execution Code. Soon you will see that the mechanism that helps ensure security also helps to establish portability. In fact, Java's solution to these two problems is elegant and efficient.

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.