Uniform Resource Identifier (URI) is used to name or identify a resource. URI can be classified as Uniform Resource Locator (URL) and Uniform Resource Name (URN). So every URL is a URI, but not every URI is a URL. URI object can represent a relative URI and does not depend on an underlying protocol handler. This class doesn't have network retrieval capabilities while URL represents an application layer protocol for network retrieval.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Java URI
Post your Comment