JVM-The heart of JAVA
At
the heart of the Java platform lies the Java Virtual Machine, or JVM. Most
programming languages compile source code directly into machine code, suitable
for execution on a particular microprocessor architecture. The difference with
Java is that it uses bytecode - a special type of machine code.
The
Java Virtual Machine is responsible for interpreting Java bytecode, and
translating this into actions or operating system calls. For example, a request
to establish a socket connection to a remote machine will involve an operating
system call. Different operating systems handle sockets in different ways - but
the programmer doesn't need to worry about such details. It is the
responsibility of the JVM to handle these translations, so that the operating
system and CPU architecture on which Java software is running is completely
irrelevant to the developer.
The Java Virtual
Machine forms part of a large system, the Java Runtime Environment (JRE). Each
operating system and CPU architecture requires a different JRE. The JRE
comprises a set of base classes, which are an implementation of the base Java
API, as well as a JVM. The portability of Java comes from implementations on a
variety of CPUs and architectures. Without an available JRE for a given environment,
it is impossible to run Java software.
For all java Online Training or Corporate Training classes, Please Contact : Training@virtualnuggets.com
No comments:
Post a Comment