This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You want to execute a class named My.class in the package whiz.utilities.myapp. The path to that directory is
Which command would you use to run the class?
A. java -classpath . /java/MyPackages/whiz/utilities/myapp My B. java -classpath /java/MyPackages whiz.utilities.myapp.My C. java -classpath . java.MyPackages.whiz.utilities.myapp.My D. java -classpath ./java/MyPackages/whiz/utilities/myapp/My
Am I right to say the answer is B? You can't have a dot without the separator colon( right after it.