We often hear the terms JVM, JRE and JDK while start to program in Java. These three terms are essential for develop java application. These three element provide us an environment to develop java application.
JVM (Java Virtual Machine) is an abstract machine which is a specification that provides runtime environment in which java program are executed. JVM is hardware and software platform dependent therefore we can get different version and types of JVM for different OS. It mainly perform four task. Loading, verifying and executing program code and providing runtime environment.
JRE(Java Runtime Environment) is used for providing runtime environment for the execution of the program. It implements JVM and physically exist. It contains a set of libraries and other required files which are used by the JVM at runtime.
JDK(Java Development Kit) is collection of JVM, JRE and development tools for developing java application. It is used for application development and used by the developer.
If we are going to execute java program only then on we need JRE only. JRE is already installed in every OS but some times we need to install manually JRE for running java enabled application in our machine. We need JDK when we develop java program.
No comments:
Post a Comment