1z0-811 Exam QuestionsBrowse all questions from this exam

1z0-811 Exam - Question 14


Which two statements are true about the Java Runtime Environment (JRE)?

Show Answer
Correct Answer: AB

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.

Discussion

3 comments
Sign in to comment
supercoderOptions: BD
Nov 2, 2023

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.

AnuOptions: AB
Dec 23, 2023

Java is platform independent, JVM/JRE is not! A and B are correct.

ketty04Options: BD
Jul 18, 2024

JRE interprets bytecode, soyou can run any .class file, also it is platform independent, you can install it on windows, mac, linux, etc