JDK vs JRE vs JVM
In your first lesson of Java you may hear this jargon JDK, JRE, JVM. :) You may or may not be confused. when your teacher says about this Jargon, I hope you were busy with compile and execute your "Hello World " program.
I wonder some time how this happens? Let's have a coffee break with jargon.
Let's surf what is JDK. I have goooooogle on Google Images about JDK. Lots of places it shows the following complicated image with so many stuffs.
Let's called JDK is a kit, which include what are those things need to developed and run java applications.
JDK is given as development environment for building applications, component s and applets.
You can find the latest jdk here
JRE : Java Run-time Environment
It contains everything you need to run Java applications in compiled form. You don't need any libraries and other stuffs. All things you need are compiled.
JRE is can not used for development, only used for run the applications.
So finally we are come to a conclusion that:
JVM: Java Virtual Machine
It's a virtual machine, which work on top of you operating system and giving an environment to your compiled java codes. JVM only understand the byte codes (.class), which are compiled with java compilers.
You may wonder how this compilations works. Let's watch this video.
I wonder some time how this happens? Let's have a coffee break with jargon.
Let's surf what is JDK. I have goooooogle on Google Images about JDK. Lots of places it shows the following complicated image with so many stuffs.
OMG! What is this ? Cool Let's take dig!
JDK : Java Development Kit
Let's called JDK is a kit, which include what are those things need to developed and run java applications.
JDK is given as development environment for building applications, component s and applets.
You can find the latest jdk here
JRE : Java Run-time Environment
It contains everything you need to run Java applications in compiled form. You don't need any libraries and other stuffs. All things you need are compiled.
JRE is can not used for development, only used for run the applications.
So finally we are come to a conclusion that:
"If you want to run Java programs, but not develop them, download the Java Run-time Environment, or JRE. If you want to develop them, download the Java Development kit, or JDK"
It's a virtual machine, which work on top of you operating system and giving an environment to your compiled java codes. JVM only understand the byte codes (.class), which are compiled with java compilers.
You may wonder how this compilations works. Let's watch this video.
Oh! The Coffee is finished lets meet in another coffee break...
Comments
Post a Comment