Wednesday 29 June 2016

Difference between path and classpath in java

Path  -  Used by OS to identify binary files

Classpath  -  Used by compiler and JVM    to identify java binary files.

Path is a mediator between developer and OS to inform softwares binary files path.

Classpath is a mediator between developer and (compiler, JVM) to inform the library files path those are used in our source code.

No comments: