- It is the virtual machine that runs the java bytecodes.
- The JVM is called virtual because it provides a machine interface that does not depend on the underlying operating system and machine hardware architecture.This independence from hardware and the operating system is a corner-stone of the write-once-run-anywhere value of Java programs.
- JVM is also platform dependent and provides core java functions like memory management, garbage collection, security, etc.
- JVM is customizable and we can use java options to customize it, for example allocating minimum and maximum memory to JVM.
- The JVM performs the following main tasks:
- Loads code
- Verifies code
- Execute code
- Provides runtime environment
Java Runtime Environment (JRE) :-
- It is a software package that provides java class libraries, along with Java Virtual Machine (JVM), and other components to run applications written in Java programming.
- To execute any Java application, you need JRE installed in the machine. It's minimum requirement to execute java applications on any machine.
- JREs can be downloaded as a part of JDKs or you can download them separately.
- JREs are platform dependent. It means that based on the type of machine (OS and architecture), you will have to select the JRE bundle to import and install.
Java Development Kit (JDK) :-
0 Comments
Tell us your queries or more topics which you want