Exam 1z0-811 All QuestionsBrowse all questions from this exam
Question 14

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

    Correct Answer: A, B

    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
ketty04Options: BD

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

AnuOptions: AB

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

supercoderOptions: BD

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.