yt

Header Ads

Chapter 2 What is JDK, JVM and JRE Explain in Details

Java Development Tools :- Java software built in development tools की मदद से बनाया जाता है। आइये इन development tools के बारे में जानने का प्रयास करते है।

  • JVM (Java Virtual Machine) :- जैसा की आप जानते है की जब आप किसी java program को compile करते है तो वो पहले byte code में convert होता है। इसके बाद वो byte code machine code में convert किया जाता है। JVM एक environment या machine होती है जो byte code को machine code में convert करती है। ये JRE के साथ मिलकर काम करती है |
  • JDK (Java Development Kit) :- JDK एक environment होता है जिसमे आप कोई भी java program क्रिएट कर सकते है और उसको execute करवा सकते है JDK में JRE होता है जो किसी भी java program के execution के लिए responsible होता है।
  • JRE (Java Run-time Environment) :- JRE आपके program के execution के लिए responsible होता है JRE कुछ classes और libraries का group होता है जो एक साथ मिलकर program को execute होने के लिए environment create करते है।
  • JRE के 2 काम होते है। 

  • Program में main मेथड को ढूंढना 
  • Program का execution start करना।
Difference Between JVM, JRE and JDK
  • For better understanding and details knowledge of java it is necessary to know the difference between JVM, JRE and JDK.
JVM 
  • It stands for java virtual machine.
  • JVM is the Virtual Machine that runs on actual machine and executes java bytes code.
  • It is called a virtual Machine because it doesn't physically exist.
  • JVM provides at run time environment in which java byte code can be executed.
JRE 
JRE
  • It stands for java run time environment.
  • It provides run time environment for a java program.
  • It is combination of JVM and set of libraries.
  • The set of library is used by JVM at run time. 


JDK

  • It stands for java development kit.
  • It contains all the library which is used to developed and run a java application.
  • It is a combination of JRE and set of Development tool.
  • JDK



No comments

Theme images by Dizzo. Powered by Blogger.