Information AboutJava Platform |
| CATEGORIES ABOUT JAVA PLATFORM | |
| java platform | |
| computing platformsjava platform | |
| computing platforms | |
| computing platforms | |
|
The Java platform is the name for a bundle of related programs, or Platform , from Sun Microsystems which allow for developing and running programs written in the Java Programming Language . The platform is not specific to any one processor or operating system, but rather, an execution engine (called a Virtual Machine ) and a compiler with a set of standard libraries are implemented for various hardware and operating systems so that Java programs can run identically on all of them. Different "editions" of the platform are available, including:
As Of December 2006 , the current version of the Java Platform is specified as either 1.6.0 or 6 (both refer to the same version). Version 6 is the product version, while 1.6.0 is the developer version. The Java Platform consists of several programs, each of which provides a distinct portion of its overall capabilities. For example, there is the Java compiler that converts Java source code into Java bytecode (an intermediate language for the Java Virtual Machine (JVM)) and provided as part of the Java Development Kit (JDK). There is a sophisticated Java Runtime Environment (JRE) that usually implements the JVM by means of a Just-in-time (JIT) Compiler that converts intermediate bytecode into native machine code on the fly. There are extensive libraries (pre-compiled into Java bytecode) containing reusable code, as well as numerous ways for Java applications to be deployed, including being embedded in a web page as an applet. There are several other components , some available only in certain editions, as depicted by the diagram at left. The essential components in the platform are the Java language compiler, the libraries, and the runtime environment in which Java intermediate bytecode "executes" according to the rules laid out in the virtual machine specification. JAVA VIRTUAL MACHINE See Also: Java Virtual Machine The heart of the Java Platform is the concept of a "virtual machine" that executes Java Bytecode programs. This bytecode is the same no matter what hardware or operating system the program is running under. There is a JIT compiler within the ''Java Virtual Machine'', or JVM. The JIT compiler translates the Java bytecode into native processor instructions at run-time and caches the native code in memory during execution. The use of bytecode as an intermediate language permits Java programs to run on any platform that has a virtual machine available. The use of a JIT compiler means that Java applications, after a short delay during loading and once they have "warmed up" by being all or mostly JIT-compiled, tend to run about as fast as native programs. Since JRE version 1.2, Sun's JVM implementation has included a Just-in-time Compiler instead of an interpreter. CLASS LIBRARIES In most modern operating systems, a large body of reusable code is provided to simplify the programmer's job. This code is typically provided as a set of Dynamically Loadable Libraries that applications can call at runtime. Because the Java Platform is not dependent on any specific operating system, applications cannot rely on any of the existing libraries. Instead, the Java Platform provides a comprehensive set of standard class libraries, containing much of the same reusable functions commonly found in modern operating systems. The Java class libraries serve three purposes within the Java Platform. Like other standard code libraries, they provide the programmer a well-known set of functions to perform common tasks, such as maintaining lists of items or performing complex string parsing. In addition, the class libraries provide an abstract interface to tasks that would normally depend heavily on the hardware and operating system. Tasks such as network access and file access are often heavily dependent on the native capabilities of the platform. The Java java.net and java.io libraries implement the required native code internally, then provide a standard interface for the Java applications to perform those tasks. Finally, some underlying platforms may not support all of the features a Java application expects. In these cases, the class libraries can either emulate those features using whatever is available, or provide a consistent way to check for the presence of a specific feature. |
|
|