GIAC
GSSP-JAVA · Question #197
Maria works as a Software Developer for Bluetech Inc. She develops a class named Warden that needs to access a class named Hostel, which is deployed in a JAR named City.JAR. What will she do in…
The correct answer is C. She will place the JAR file in $ JAVA_HOME/jre/lib/ext/City.JAR. See the full explanation below for the reasoning.
Question
Maria works as a Software Developer for Bluetech Inc. She develops a class named Warden that needs to access a class named Hostel, which is deployed in a JAR named City.JAR. What will she do in order to enable the Warden class to have access to the Hostel class during compilation?
Options
- AShe will place the JAR file in javaprog/City.JAR and set the class path environment to
- BShe will place the JAR file in javaprog/City.JAR and set the class path environment to
- CShe will place the JAR file in $ JAVA_HOME/jre/lib/ext/City.JAR.
- DShe will place the JAR file in $ JAVA_HOME/jre/classes/City.JAR.
How the community answered
(43 responses)- A7% (3)
- B5% (2)
- C86% (37)
- D2% (1)
Community Discussion
No community discussion yet for this question.