The Java Virtual Machine (JVM) allows Java programs to run on any platform, making Java write once run anywhere. The JVM is a virtual machine that executes Java bytecode, providing the code execution component of the Java platform. The Java Runtime Environment (JRE) provides a platform to execute Java programs by including the JVM and necessary Java binaries and classes, but does not contain development tools like compilers - only the JRE is needed to run Java programs, not the JDK.
The Java Virtual Machine (JVM) allows Java programs to run on any platform, making Java write once run anywhere. The JVM is a virtual machine that executes Java bytecode, providing the code execution component of the Java platform. The Java Runtime Environment (JRE) provides a platform to execute Java programs by including the JVM and necessary Java binaries and classes, but does not contain development tools like compilers - only the JRE is needed to run Java programs, not the JDK.
The Java Virtual Machine (JVM) allows Java programs to run on any platform, making Java write once run anywhere. The JVM is a virtual machine that executes Java bytecode, providing the code execution component of the Java platform. The Java Runtime Environment (JRE) provides a platform to execute Java programs by including the JVM and necessary Java binaries and classes, but does not contain development tools like compilers - only the JRE is needed to run Java programs, not the JDK.
The concept of Write-once-run-anywhere (known as the Platform independent) is one of
the important key feature of java language that makes java as the most powerful language. Not even a single language is idle to this feature but java is closer to this feature. The programs written on one platform can run on any platform provided the platform must have the JVM(Java Virtual Machine). A Java virtual machine (JVM) is a virtual machine that can execute Java bytecode. It is the code execution component of the Java software platform.
JRE
JRE is the implementation of JVM, it provides a platform to execute java
programs. JRE consists of JVM and java binaries and other classes to execute any program successfully. JRE doesn’t contain any development tools like java compiler, debugger etc. If you want to execute any java program, you should have JRE installed but we don’t need JDK for running any java program.