The Java Environment #rowcoder

QUIZ LINK : https://take.quiz-maker.com/Q0BDUZ3MN 

The Java Environment 

We know that java have a JVM(Java virtual machine).

  • JVM is used to convert Bytecode into machine code(0 and 1).
  • JVM contain Interpreter/JIT(just-in-time) to convert Bytecode into microprocessor to specific machine language instruction(machine code).



  • Instruction set vary from microprocessor to microprocessor, there exist different JVMs for different platform . Thus, JVM can run any Java program.

  • JVM themselves are not portable(machine independent).
=> JVM is distributed along with a set of standard class libraries that  implement the Java application program interface(API).
  • Java JVM and API form Java runtime environment(JRE).                  
                                              API+JVM=JRE

=> If your need is only to execute Java program on your machine.
  • Ex- if you want to execute Java based game on your machine all you need only JRE. 
  • But if you wish to also develop program on your machine, you need JDK.

  • JDK
  1. JDK contain tools that needed to develop the java program. as well as JRE to run the program.
  2. Tools include compiler(Javac.exe), Java application launcher(Java.exe).
  • Compiler convert Java code into bytecode Java application launcher open JRE, load the class and call its main() method.
  1. debugger : Needed to detect, analyse and eliminate bugs in the program.





Comments