单项选择题
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
相关考题
-
单项选择题
What is the result?()
A.s=14
B.s=16
C.s=10
D.Compilation fails.
E.An exception is thrown at runtime. -
多项选择题
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 -
单项选择题
Ateamofprogrammersisinvolvedinreviewingaproposeddesignforanewutilityclass,Aftersomediscussion,theyrealizethatthecurrentdesignallowsotherclassestoaccessmethodsintheutilityclassthatshouldbeaccessibleonlytomethodswithintheutilityclassitself.Whatdesignissuehastheteamdiscovered?()
A.Tight coupling
B.Low cohesion
C.High cohesion
D.Loose coupling
E.Weak encapsulation
F.Strong encapsulation
