If the current directory is test, and the file pkg/Kit.class is in KitJar.jar, which command line will produce the output bc ? (Choose all that apply.) A. java UseKit b c B. java UseKit a b c C. java -classpath com UseKit b c D. java -classpath com:. UseKit b c E. java -classpath com/KitJar.jar UseKit b c F. java -classpath com/KitJar.jar UseKit a b c G. java -classpath com/KitJar.jar:. UseKit b c H. java -classpath com/KitJar.jar:. UseKit a b c
Answer is H I dont understand why F is false, why specifying the dot in the classpath is required?
Here is the relevant quote from the Sun Java web site:
The default class path is the current directory. Setting the CLASSPATH variable or using the -classpath command-line option overrides that default, so if you want to include the current directory in the search path, you must include "." in the new settings.