Which two statements are true about the Java Runtime Environment (JRE)?
Which two statements are true about the Java Runtime Environment (JRE)?
The Java Runtime Environment (JRE) is responsible for garbage collection, which is a key function to manage memory by automatically freeing up unused objects. Additionally, the JRE interprets bytecode stored in a .class file, which allows Java programs to be executed. The JRE does not contain the JDK (Java Development Kit) and Java APIs, as those are separate components. While Java as a language is platform independent, the JRE itself is dependent on the specific operating system it is installed on. You do not need to install the JRE to compile a .java file; the JDK is required for compilation.
JRE interprets bytecode, soyou can run any .class file, also it is platform independent, you can install it on windows, mac, linux, etc
Java is platform independent, JVM/JRE is not! A and B are correct.
JDK > JRE > JVM JVM is the instance created when user installs JRE in system. Its used to run files with .class JDK is used to run files with .java with java compiler.