Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
A URL is a concrete implementation of the abstract concept of an URI, and it defines the location of a resource on the Internet. There are many types of URLs such as ftp, http, gopher, etc.
To draw a picture showing the progression from abstract towards actual implementation, the order goes like this:
URI --> URL -->ftp, http, gopher, etc.
There are other types of URIs other than URL, such as URN. A URL is always a URI, but a URI is not necessarily a URL.
Originally posted by Dave Van Even:
[B]I don't get it! then why is URL
Someone ??? [/B]
This is basic Java heirarchy. By Default any class that doesn't extend any superclass then automatically inherits from java.lang.Object . Object class is the superclass of all classes, it is like the root class if you want to say
I'll quote BJ Grau
A URL is a concrete implementation of the abstract concept of an URI, and it defines the location of a resource on the Internet.
so you would say that, even if no implementation of URI is there yet, the developers would have sone
just being analytical
[This message has been edited by BJ Grau (edited September 15, 2001).]
True statement :
If a class A implements B doesn't mean in no way that A is a Subclass of B.
Originally posted by Kareem Gad:
its clear , doesn't mean that a class implements another class that it is a subclass of it !
so it doesn't have to fall under the same heirarchy, w.r.t. inheritence.
I did a quick google search and found these links having simple and clear explanations.
What i understand from them is that a URL is a path to a resource(like a website) which is a collection of related documents and a
URI is a path to any document in a website.
www.javaranch.com is a URL and www.javaranch.com/ubb/forum33/HTML/00213.html is a URI.
Any way check out these links
www.javaranch.com/ubb/Forum33/HTML/000213.html and http://www.pierobon.org/iis/url.htm
Hope this helps,
[This message has been edited by Manjunath Subramanian (edited September 18, 2001).]