What Is The Java Runtime Environment -

When you download the JRE, you are essentially downloading a package of three main components:

These are pre-written chunks of code that developers use to build applications. The JRE contains the runtime version of these libraries. For example, if a program needs to connect to the internet or open a window, it uses code from these libraries. Without the JRE, the application wouldn't have access to these "vocabulary" words. what is the java runtime environment

However, you still need the JRE if:

In the early days of computing, software was chained to its hardware. A binary compiled for an x86 Intel processor would choke and die on an ARM chip, a PowerPC, or a mainframe. Each operating system—Windows, macOS, Linux, Solaris—had its own Application Binary Interface (ABI), its own system call conventions, its own memory layout. When you download the JRE, you are essentially

The JRE is a bet: a bet that the cost of running a virtual machine is worth the benefit of platform independence. A bet that the overhead of garbage collection is worth the elimination of memory errors. A bet that a JIT compiler’s warm-up time is worth the peak performance. Without the JRE, the application wouldn't have access

The JDK contains the JRE, and the JRE contains the JVM.