What is difference between Path and Classpath?

1 votes
208 views
Kusti  Franti asked 20-Dec-2017 in Technology by Kusti Franti

What is difference between Path and Classpath?

1 Answer

0 votes
Harsh kumar srivastava answered 21-Dec-2017 by Harsh kumar srivastava

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...