adspace


What is the difference between url instance and urlconnection instance?

Answer Posted / Ruchi Porwal

A URL instance in Java represents a network resource's URI (Uniform Resource Identifier). A URLConnection instance, on the other hand, establishes a connection to the resource specified by a URL instance and provides methods for sending and receiving data. In short, a URL is an object that identifies a resource, while URLConnection is an object that connects to and communicates with the identified resource.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category