What is difference between Path and Classpath?

Asked 20-Dec-2017
Viewed 681 times

1 Answer


0

the main difference between Path and Classpath is, Path is used to define the path of executable '.exe' file which can find by System, But the Class path is used to find the location of the Class file.

Or we also say that Path is an environment variable which is used by the operating system to find the executable .exe files. Classpath is also an environment variable but it's used by java compiler to find the location of the class file.


Hope it's informative...