nerdexam
Oracle

1Z0-851 · Question #23

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where the old one is installed. Bob is currently able to run a Java chess program starting from his home…

The correct answer is C. /test/games/Chess.class. See the full explanation below for the reasoning.

Question

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where the old one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/.jar games.Chess Bob's CLASSPATH is set (at login time) to: /usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/.jar What is a possible location for the Chess.class file?

Options

  • A/test/Chess.class
  • B/home/bob/Chess.class
  • C/test/games/Chess.class
  • D/usr/lib/games/Chess.class
  • E/home/bob/games/Chess.class
  • Finside jarfile /opt/java/lib/Games.jar (with a correct manifest)
  • Ginside jarfile /home/bob/downloads/Games.jar (with a correct manifest)

How the community answered

(37 responses)
  • A
    8% (3)
  • C
    73% (27)
  • D
    14% (5)
  • E
    3% (1)
  • G
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-851 Practice