URL (Uniform Resource Locator), generic resource locator . http://www.eamonning.com/index.php is a URL.
URI (Uniform Resource Identifier), generic resource identifier .
A URI is purely a symbolic structure that specifies different parts of a string that makes up a web resource. A URL is a special type of URI that contains enough information to find a resource. Other URIs, such as: Mailto:[email protected], do not belong to a locator because there is no data in it that is found based on that identifier, which is called a urn (common resource name).
In the Java library, the URI class does not contain any methods for accessing the common resource identifier settings, and its sole purpose is to parse. Instead, the URL class can open a string that reaches the resource.
transferred from: http://www.eamonning.com/blog/view/232
The difference between a URL and a URI