单项选择题A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()

A.put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java
B.put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jar
C.Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jar
D.put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java
E.put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jar
F.put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

What is the result?()

A.s=14
B.s=16
C.s=10
D.Compilation fails.
E.An exception is thrown at runtime.

2.多项选择题

What two must the programmer do to correct the compilation errors?()

A.insert a call to this() in the Car constructor
B.insert a call to this() in the MeGo constructor
C.insert a call to super() in the MeGo constructor
D.insert a call to super(vin) in the MeGo constructor
E.change the wheelCount variable in Car to protected
F.change line 3 in the MeGo class to super.wheelCount=3

4.多项选择题

What are four valid examples of polymorphic method calls?()

A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1();

5.单项选择题

What is the result?()

A.peep
B.bark
C.meow
D.Compilation fails.
E.An exception is thrown at runtime.

6.单项选择题

What is the result?()

A.Afoo,Afoo
B.Afoo,Bfoo
C.Bfoo,Afoo
D.Bfoo,Bfoo
E.Compilation fails.
F.An exception is thrown at runtime.

7.多项选择题

Which three statements are true?()

A.Compilation fails.
B.The code compiles and the output is 2.
C.If lines 16, 17 and 18 were removed, compilation would fail.
D.If lines 24, 25 and 26 were removed, compilation would fail.
E.If lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
F.If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.

8.单项选择题

What is the result?()

A.Compilation succeeds.
B.Compilation fails due to multiple errors.
C.Compilation fails due to an error only on line 20.
D.Compilation fails due to an error only on line 21.
E.Compilation fails due to an error only on line 22.
F.Compilation fails due to an error only on line 12.

9.单项选择题

What is the result?()

A.The file will compile without error.
B.Compilation fails. Only line 7 contains an error.
C.Compilation fails. Only line 12 contains an error.
D.Compilation fails. Only line 13 contains an error.
E.Compilation fails. Only lines 7 and 12 contain errors.
F.Compilation fails. Only lines 7 and 13 contain errors.
G.Compilation fails. Lines 7, 12, and 13 contain errors.

10.单项选择题

What is the result?()

A.w-f
B.f-p,w-f
C.w-f,b-f
D.f-p,w-f b-f
E.Compilation fails.
F.An exception is thrown at runtime.