nerdexam
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…

Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #84. The question stem and answer options stay visible for context.

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

Unlock GSSP-JAVA to see the answer

You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GSSP-JAVA Practice