There are four (six in 1.2) constructors in the java.net.URL
class.
public URL(String u) throws MalformedURLException
public URL(String protocol, String host, String file) throws MalformedURLException
public URL(String protocol, String host, int port, String file) throws MalformedURLException
public URL(URL context, String url) throws MalformedURLException
public URL(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException
public URL(URL context, String url, URLStreamHandler handler) throws MalformedURLException