Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
1.2k views
by The go-to Tester (344 points)
What is the difference between Path and Classpath in Java

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

Path refers to an absolute or a relative path to the file. Where is Classpath consist of package name andd the class name.

Sample of file Path:

C:\Java\jdk1.7.0\bin;C:\Windows\System32\;

 

Sample Classpath:

in.mayurshah.App

- Here in.mayurshah is package name

- App is the class.

 

Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...