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?

Yingie Pitts
Ranch Hand

Joined: Oct 10, 2002
Posts: 37
There are two Java APIs, URL and URI. But I can not distinguish them by reading the documentation. So, under what circumstances should we use URL? URI?

"To err is human, but to really foul things up you need a computer." Paul Ehrlich.
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

Hi Pitts -
Welcome to JavaRanch! One thing we like is to make sure everyone uses a proper screen name. Here's our policy for your review. Thanks for helping us maintain our site appearance.
The answer to this question will appeal to a lot more people than this forum typically attracts. It makes more sense to me to put this in Servlet/JSP, so I'm going to move it.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link:
subject: Difference between URL and URI?
jQuery in Action, 3rd edition