DEV Community

Cover image for Java JVM, JRE and JDK
PUSHAN VERMA
PUSHAN VERMA

Posted on

Java JVM, JRE and JDK

Image descriptionJVM (Java Virtual Machine )
JRE(Java Runtime Environment)
JDK(Java Development Kit)

For Java to run on your computer you need some software right , So you install JDK , it is a development kit as the name suggests it has a kit to run Java , just like you have cricket kit which contains pads, Helmet , and Bat etc. it has all the things for you to run java .

After installing JDK, you write some code in java in your IDE and compile the code and after compiling a class file is also generated why ? because JDK has a virtual machine which converts your “english code” to bytecode for system to understand because at the end computer only understands 0’s and 1’s.

And during compiling of your code , apart from your own written code you need some other files also to run the program i.e if you are using a java collection framework method i.e arrays.sort() , or using any method which is provided by java inbuilt , that means you are using inbuilt functions and that functions are provided by JRE(java run time environment )

So this is the lifecycle of a simple java program that you write.

Connect me here -https://www.linkedin.com/in/pushan-verma-559260176/

Top comments (0)