Java MCQ: Which environment variable is used to set the Java path?
a) JAVA_HOME
b) PATH
c) CLASSPATH
d) JRE_HOME
Answer:
a) JAVA_HOME
Explanation:
The JAVA_HOME
environment variable is used to set the path to the Java Development Kit (JDK) installation directory. This variable is often required by Java applications to locate the correct Java installation.
Reference links:
https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html