Friday, December 10, 2010

What is JVM ?

JVM is a platform-independence execution  environment that converts Java byte code into machine language and executes it.
Most programming languages compile source code directly into machine code that is designed to run on a specific microprocessor architecture or operating system such as windows or UNIX.

A JVM -a machine within a machine -Initiates  a real Java processor ,enable Java bytecode to be executed as actions or operating system calls on any processor regardless of the operating system.

For example ,establishing a socket connection from a workstation to a remote machine involves an operating system call. since different operating system handle sockets in different ways, the JVM translates the programming code so that the two machines that may be on different platforms are able to connect .

A JVM likey to be ferform "Allocating and Garbage-collecting Objects,spinning up threads,opening and closing files,Interpreting and/or  JIT compiling java byte code , and more".