DEV Community

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

Posted on

1

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/

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay