Professional Documents
Culture Documents
I. Practical Significance:
The Uniform resource locator in java allows the user to access the particular file or
resource which might be stored on any local or remote machine. The URL specifies
the complete path by which user can access file. It contains protocol address, port
number and location of the particular resource.
The URL and URLConnection classes are good enough for simple programs that want
to connect to HTTP servers to fetch content.
List of URL Class Methods and Constructors:
1. public URL (String protocol, String host, int port, String file) throws
MalformedURLException
2. public URL (String protocol, String host, String file) throws
MalformedURLException
3. public URL(String url) throws MalformedURLException
4. public URL(URL context, String url) throws MalformedURLException
Methods:
1. public String getPath()
2. public String getAuthority()
3. public String getHost()
4. public String getFile()
Nil
Sr.
Name of Resource Broad Specification Quantity Remarks (If any)
No.
1