Difference between a URL instance and a URL connection instance.A URL instance is used to represents the location of a resource. On the other hand, a URL connection instance is used to represent a link for accessing communicating with the resource at the location.
The URL class provides an abstraction of a URL the World Wide Web’s pointer while the URL instance specifies how to reach a resource.
|