Understanding Java Compilation: -sourcepath and -classpath Explained - Quiz
Total: 2 questions
1. Where does java and javac look for the classes?
Where does java and javac look for the classes?
First they look in the directories with standard Java SE (J2SE) classes. Then they look in the directories defined by classpaths.
2. Where classpaths can be declared?
Where classpaths can be declared?
It can be declared as an operating system environment variable or as a command-line option.
Page 1 of 1