GIAC
GSSP-JAVA · Question #84
GSSP-JAVA Question #84: Real Exam Question with Answer & Explanation
The correct answer is C. The JAR file should be located in $ JAVA_HOME/jre/lib/ext/City.JAR.. See the full explanation below for the reasoning.
Question
Samantha works as a Software Developer for Bluetech Inc. She develops a class Warden that needs to access the Hostel class. The Hostel class is deployed in a JAR named City.JAR. What should be done so that during compilation the Warden class has access to the Hostel class?
Options
- AThe JAR file should be located in $ JAVA_HOME/jre/classes/City.JAR.
- BThe JAR file should be located in javaprog/City.JAR and the class path environment
- CThe JAR file should be located in $ JAVA_HOME/jre/lib/ext/City.JAR.
- DThe JAR file should be located in javaprog/City.JAR and the class path environment
Community Discussion
No community discussion yet for this question.