JDK JRE and JVM in Java

Поділитися
Вставка
  • Опубліковано 7 жов 2024
  • Learn about JDK JRE JVM in this video.
    What is JVM?
    What is JDK?
    What is JRE?
    Importance and uses of JVM, JRE, and JDK.
    In order to compile Java code, a necessary tool is the JDK, short for Java Development Kit. Bytecode is designed to run on a machine, which means that we must transform the Java code into bytecode. When you install the JDK, you also acquire both an upgraded JRE (Java Runtime Environment) and JVM (Java Virtual Machine).
    JVM stands for Java Virtually Machine.
    A virtual machine (VM) is the environment in which code is executed. The JVM (Java Virtual Machine) plays a crucial role in making the Java language platform-independent. To run your code, you first compile it using the JDK, and then you execute it within the JVM. It's important to note that the JVM is platform-dependent, requiring specific builds for different operating systems.
    JRE stands for Java Runtime Environment.
    The JRE encompasses a comprehensive collection of built-in classes, additional files, and libraries that are accessible for use in our code. It is responsible for the validation of bytecode and class loading. When utilizing supplementary libraries, an environment is necessary, and above the operating system, there exists an additional layer known as the JRE.
    JVM is a part of JRE. JRE includes JVM and libraries.JVM - Java Virutal Machine. JRE - Java Runtime Environment. For development purposes, you need to install JDK (Java Development Kit) which consists of JRE and JVM.

КОМЕНТАРІ • 2