File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes difference between  URL and URI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between  URL and URI" Watch "difference between  URL and URI" New topic

difference between URL and URI

nivas yl

Joined: Jan 02, 2007
Posts: 2
Hi friends,
can you please tell me what is the difference between URL and URI.

Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
The only difference is that

URI is only for identifying the resource.

URL is for locating/ finding resources.URL will contain request to URI i.e URI is a part of URL

RAGHU<br /> <br />"When the going gets tough, the tough get going"
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1847

URI: is a string that identifies any resource. Indentifying the resource does not necessarily mean we can retrieve it. URI is a superset of URL and URN.

URL: URI that specify a common Internet protocol such as HTTP or FTP are also called URLs. URL is an informal term an is not used in technical specifications.

URN: A URN is an identifier the uniquely indentifies a resource but does not specify how to access that resource.
ISBN: 1-930110-59-6

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
I agree. Here's the link:
subject: difference between URL and URI