swaraj gupta wrote:
1> javac searches the current directory for .java file by default.
javac doesn't use the classpath to find the .java file. It uses the location that you specify in the command line.
swaraj gupta wrote:
2> javac DOES NOT search the current directory for supporting .class files needed for the compilation .java file by default.
If you don't set the classpath (either environment or command line) then javac uses the current directory as the classpath.
swaraj gupta wrote:
3> java never searches the current directory by default.
If you don't set the classpath (either environment or command line) then the JVM uses the current directory as the classpath.
Henry