Latest posts

10/recent/ticker-posts

What are the JDK, JRE, and JVM in Java Programming Language ?

JDK, JRE, And JVM



Last time we have seen, Editors & History Of Java LanguageIn this blog post, we will explore the JDK, JRE, and JVM of Java Programming, with their significance in programming development. So let's see...





Java Development Kit (JDK)



        JDK stands for Java Development Kit, which is a software development kit used for developing Java applications. It is a package of tools that the developers use to implement, compile, and run Java programs. JDK includes the Java Runtime Environment (JRE), which provides the environment for running Java applications, as well as the resource needed to develop and compile Java programs, such as the Java Compiler, the Java Debugger, and the Java Virtual Machine (JVM).

JDK is a collection of programming tools and libraries, which include : 

  • Java Compiler : The Java Compiler is mainly used to compile java source code into byte code using the command javac.
  • Java Virtual Machine : The JVM provides the environment that helps to execute java programs by executing java Bytecode.
  • Java Runtime Environment : The JRE is nothing but the collection of the libraries, class files, and other necessary resources for running Java Applications.
  • Java Development Tools : Like we said before, JDK provides the resources i.e. tools that are used to develop, debug, and package Java Applications. Some of the tools are Java Debugger, JavaDoc, and JAR.
  • JavaFX : JavaFX is a set of libraries and tools used to develop rich client applications for desktop, mobile, and embedded devices.

In summary, JDK is an essential tool for Java developers, providing them with everything they need to develop, compile, and run Java applications. With JDK, developers can create high-quality, platform-independent Java applications for a wide range of devices and operating systems.





Java Runtime Environment (JRE)



        Java Runtime Environment (JRE) is the software environment that allows Java Applications and Programs to run on the computer or any other device. The JRE includes the libraries, class files, and resources that are required to run Java Program. It also includes the Java Virtual Machine (JVM). The only limitation of JRE is that it doesn't involve any Development Tools that are needed to develop Java Programs.

        The JRE is an essential component for running Java applications, as it provides the environment for executing Java bytecode. The JRE includes the JVM, which interprets the bytecode and executes it on the host system. The JVM is responsible for managing memory, running the bytecode, and providing other runtime services.

        Using Java we can create highly secured and featured applications. But there are some developers who only want to run their Java Programs, then they can download and install JRE on their system. The JRE can be downloaded in different operating systems such as Windows, Linux, and MacOS.





Java Virtual Machine (JVM)



        Java Virtual Machine is the software component of JRE (Java Runtime Environment) that provides the environment for executing Java ByteCode. It is a mandatory i.e. essential part of the Java Platform and it enables java programs to run on a wide variety of hardware and operating systems without requiring any modification. The JVM is responsible for interpreting the Java bytecode and executing it on the host system. It provides many services to the Java application, such as memory management, garbage collection, and exception handling. The JVM also provides a security model that allows Java applications to run in a sandboxed environment, where they are prevented from accessing the host system resources without permission.

The JVM has several key components, including : 

  • Class Loader : Since Java is an Object-oriented language, the implementation and execution of classes are very important. The Class Loader is responsible for loading the Java Classes into JVM for further execution of the program.
  • Bytecode Verifier : The bytecode verifier ensures that the Java bytecode conforms to the Java language specification and is safe to execute.
  • Interpreter : Interpreter feature allows the Java programs to be executed without the need for compilation into native machine code. It executes the program line by line on the host system.
  • Just In Time (JIT) : The JIT compiler optimizes the Java bytecode by translating it into native machine code at runtime, which can improve the performance of Java programs.
  • Garbage Collector : The garbage collector is responsible for reclaiming memory that is no longer in use by the program, freeing it up for future use.

The JVM is available for many different platforms and operating systems, including Windows, macOS, Linux, and various embedded systems. This allows Java programs to be run on a wide variety of devices, from desktop computers to mobile phones and other embedded devices. For detailed information about the Java Virtual Machine (JVM), see our next post on Java Virtual Machine with its Architecture.




So, now it's time to end our session. We'll see you guys Next Time, stay tuned for further updates on JAVA Programming with ComputerTipsTricks.tech...!!!


Our website will definitely help you to improve your Programming Skills and Knowledge.


Thanks for Visiting...!!!




Also Visit


Post a Comment

0 Comments