单项选择题
A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed.
Bob is currently able to run a Java chess program starting from his home directory /home/bob using thecommand:
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
相关考题
-
单项选择题
Given: What is the result?()
A.r, t, t,
B.r, e, o,
C.Compilation fails.
D.An exception is thrown at runtime. -
单项选择题
Given: Which code fragment, inserted at the end of line 12, produces the output p is 420?()
A.p.setWeight(420);
B.p.changePayload(420);
C.p = new Payload(420);
D.Payload.setWeight(420);
E.p = Payload.setWeight(420); -
单项选择题
Given: When line 15 is reached, how many objects are eligible for the garbage collector?()
A.0
B.1
C.2
D.3
E.4
