Monday, September 23, 2013

how java works::brainbitz

Java is a programming language that is widely used on the World Wide Web, both in Web pages (client side) and on Web servers (computers used to host or maintain Web sites). Therefore, it is an important technical component of e-commerce. Based on a high-level programming language called C++, the most popular, powerful aspect of Java is that it allows programmers to create programs that can be downloaded onto computers regardless of their operating systems (programs like Windows used for controlling a computer's basic operations). Additionally, because of its available security features, programs written in Java can be downloaded and run safely, eliminating concerns about viruses or damaged files.


Java is both simple and powerful, which makes it popular with programmers. Like C++, it is an object-oriented programming language. Object-oriented programming involves techniques that allow programmers to increase efficiency and reduce complexity. Java was developed by Sun Microsystems in 1991 for use in consumer devices. However, it soon found a place on the Web when Sun made it available for that purpose in the mid-1990s. In the early 2000s, Web browsers like Netscape Navigator, cellular phones, and personal digital assistants were being specifically designed to support the Java programming language.

Because it is an interpreted language, Java doesn't work alone. It relies on an interpreter called the Java Virtual Machine (JVM) to function. Many high-level programming languages, like C and C++, rely on programs called compilers or interpreters so they can be converted to the fundamental machine language (zeroes and ones) that a computer's hardware actually understands. However, instead of being translated directly into machine language, programs written in Java are compiled into bytecode—an intermediate language that can be interpreted by any computer running JVM. This is what gives the Java language the ability to run on any computer. While the Java programming language is available for free to programmers, the JVM requires a license for use.



Besides JVM, the Java language relies on another critical component known as the Java Platform. As David Flanagan explained in Java in a Nutshell, the Java platform consists of a set of classes. "A class is a module of Java code that defines a data structure and a set of methods (also called procedures, functions, or subroutines) that operate on that data." Classes are subsequently organized into groups called packages, which involve many functions, including networking, graphics, input/output, user-interface creation, and security.

When programs written in Java run from a Web page, they are referred to as applets. When they run on servers, they are referred to as servlets. Rather than running from a server, Web page applets actually get downloaded to a user's computer, sometimes in a matter of seconds. This frees up the server's resources so its efficiency is not affected. Many applets are available to Web site operators for free. Examples of applets include productivity tools like spread sheets, animation, mathematical applications like calculators, Web forms, and more. Many applets can be valuable tools on e-commerce sites. Because they are actual programs, applets allow Web site operators to expand the capabilities of their sites beyond that which is possible with hypertext markup language (HTML)—the authoring or presentation language used for creating the appearance of Web pages.



Read more: Java - HOW JAVA WORKS - Language, Web, Programming, and Available http://ecommerce.hostip.info/pages/643/Java.html#ixzz2fhqKmlvM

No comments:

Post a Comment