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?
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
f) inside jarfile /opt/java/lib/Games.jar (with a correct manifest)
g) inside jarfile /home/bob/downloads/Games.jar (with a correct manifest)
A resposta correta é a C, o que faz sentido para mim. Mas, porque a D também não é correta?