what is JVM?
what is JVM?
Java Virtual Machine - an environment that converts Java code into code that can run on the local operating system.
Its Java Virtual Machine..The Source code which we write for Java, is read by JVM..
A Java Virtual Machine (JVM) is a set of computer software programs and data structures that use a virtual machine model for the execution of other computer programs and scripts.
You define the logic of the program in source code. This source code is then compiled. With languages like C, C++ or VB(.NET) etcetera, the compiler creates an executable program that is directly runnable from within the operating system. With Java compilation, byte code is generated which cannot be executed directly withing the OS. An intermediate layer is needed. This layer is the JVM. The JVM is executable within the OS and you tell the JVM which byte code needs to be executed for your program logic.
Advantage: for (as far as I know) every OS, a JVM is available. So when you program in Java, your program can be executed on every OS. Because the JVM is an intermediate which is specific for the OS, you don't have to worry too much about the OS your program is running. When programming in another language, these are things to worry about.
As the above posters have said, JVM stands for "Java Virtual Machine." Rather than repeat what was said I thought I would give you this graphic to help visually display the idea.
In simpler terms, JVM is a platform-independent execution environment that converts Java bytecode into machine language and executes it.
Acronym for Java Virtual Machine. An abstract computing machine, or virtual machine, JVM is a platform-independent execution environment that converts Java bytecode 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 -- mimics a real Java processor, enabling Java bytecode to be executed as actions or operating system calls on any processor regardless of the operating system.