Java is used for one of the world’s most important and widely used computer languages. Today, it is still the best choice for developing web applications. Before going to see the uses of this language.
History of Java
J James Gosling, Patrick Naughton, Chris Warth, Chris Warth, Ed Frank, and Mike Sheridan has created java at Sun Microsystems, Inc.in 1991. It took 18 months to develop the first working version. This language was initially called “OAK”. But renamed “Java” in 1995.Between the initial implementation of oak in the fall of 1992 and public announcement of java in the spring of 1995.
The Creation of Java
The original impetus for this language was not the internet. Language primary motivation was the need for a platform-independent language. It could be used to create software to be embedded in various consumer electronic devices, such as microwave ovens and remote control.
The trouble with c and c++ is they are designed to be compiled for a specific target. It is possible to compile a C++ program for just about any type of CPU, to do so requires a full C++ compiler targeted for the CPU. The problem is that compilers are was needed. In an attempt to find such a solution. Gosling and others began working on a portable. A platform-independent language that could be used to produce code that would run on a variety of CPUs under differing environments. This effort ultimately led to the creation of this language.
Before java created, web sites not taken shape. At the time it was implementing. It might have remained a useful but obscure language for programming consumer electronics. However, which the emerges of the World Wide Web, This was propelled to the forefront of computer language design, because the web, too, demanded portable the programs
This language innovated a new type of networked program called the applet. Applet changed the way of the online web. The applet is designed to be transmitted over the internet and automatically executable by a web browser. The applet is download on-demand, without further interaction with the user. If the user clicks a link that contains an applet. The applet will be automatically downloaded and run in the browser.
For example, when you read your e-mail, you are passive data. Even when you download a program the program’s code is still only passive data until you execute it. By contrast, the applet is a dynamic, self-executing program. The client computer is activated by this program. The server is initiated by it.
Obviously, a program that downloads and executes automatically on the client computer must be prevented from doing farm.
Every time you download a normal program, you are taking a risk. Because of the code you are downloading might contain a virus, trojan horse, or other harmful code. At the core of the problem is the fact that malicious code can cause damage. Because it has gained unauthorized access to system resources.
For example, a virus program might gather private information. It was necessary to prevent an applet from launching such an attack. But this language achieved this protection by confining an applet to the Java execution environment and not allowing it access to other parts of the computer. The ability to download applets with confidence that no harm will be done that no security will be breached may have been the single most innovative aspect of this language.
The source code for all of the examples is available free-of-charge on the Web CLICK HERE
If you want to learn more about programming languages see our website for updates http://notesforgeeks.com/