Difference JDK, JRE and JVM - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Monday, 6 January 2020

Difference JDK, JRE and JVM

JDK, JRE and JVM

 

JDK  (JAVA DEVELOPMENT KIT)

JRE   (JAVA RUNTIME ENVIRONMENT)

JVM (JAVA VIRTUAL MACHINE)

 

In java programming, all source code written on plain text file with extension (myfile.java) then this files converted into .class files now.

Now lets understand one by one starting with one by one.

JDK (JAVA DEVELOPMENT KIT) : JDK is kit or you can say it have tools to built java apps which includes JRE and its physically present, it provided an environment to built apps. jdk used to run and built java apps.

JRE (JAVA RUNTIME ENVIORMENT) : JRE it is present in JDK it have libaries which are used to built java apps and it is physically present in jdk.

JVM (JAVA VIRTUAL MACHINE) : its a virtual machine which is used to run java apps, JVM executes .class files (byte-code) and produces output. it is not physically present. jvm is platform independent which loads the byte-code in physical memory

Java Virtual Machine or JVM is the one who provides Platform independence to Java

No comments:

Post a Comment