nerdexam
GIAC

GSSP-JAVA · Question #78

Given the following directory structure. Assuming that the current directory is com, which of the below options can be used to create a jar file called TestJar.jar that contains all the files from…

The correct answer is D. jar -cf TestJar.jar testApp. See the full explanation below for the reasoning.

Question

Given the following directory structure. Assuming that the current directory is com, which of the below options can be used to create a jar file called TestJar.jar that contains all the files from the directory testApp?

Options

  • Ajar -zf TestJar.jar
  • Bjar -cf TestJar.jar
  • Cjar -tf TestJar.jar
  • Djar -cf TestJar.jar testApp

How the community answered

(16 responses)
  • A
    13% (2)
  • C
    6% (1)
  • D
    81% (13)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice