GIAC
GSSP-JAVA · Question #84
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…
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
How the community answered
(37 responses)- A11% (4)
- B3% (1)
- C78% (29)
- D8% (3)
Community Discussion
No community discussion yet for this question.