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.
Liked it! Share this Tutorial