JDK is a software development environment used for making applets and Java applications. JDK helps them to code and run Java programs. It is possible to install more than one JDK version on the same computer. JRE is a piece of a software which is designed to run other software.
It contains the class libraries, loader class, and JVM. In simple terms, if you want to run Java program you need JRE. JVM is an engine that provides a runtime environment to drive the Java Code or applications. It converts Java bytecode into machine language.
It cannot be separately downloaded and installed. In many other programming languages, the compiler produces machine code for a specific system. However, Java compiler produces code for a virtual machine which is called as JVM.
Once you write and compile Java code, the compiler generates a class file having byte code. Here are the important components of JRE:. The class loader is a subsystem used for loading class files. It performs three major functions viz.
JVM is the abbreviation for Java virtual machine which is basically specification that provides a runtime environment in which Java byte code can be executed i. It is JVM which is responsible for converting Byte code to the machine specific code. It can also run those programs which are written in other languages and compiled to Java bytecode.
JRE comprises mainly java binaries and other classes to execute the program alike of JVM it physically exists. Along with Java binaries JRE also consist of various technologies of deployment, user interfaces to interact with code executed, some base libraries for different functionalities and language and util based libraries. JDK is abbreviation for Java Development Kit which includes all the tools, executable and binaries required to compile, debug and execute a Java Program.
Java is platform-independent but JVM is platform dependent. Skip to content. Change Language. Related Articles. Table of Contents. Save Article. Improve Article. Like Article. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert.
0コメント