public static URL createURL(String protocol,String host,String file) throws MalformedURLException {
  return createURL(protocol,host,-1,file);
}

public static URL createURL ( String protocol , String host , String file ) throws MalformedURLException { return createURL ( protocol , host , - 1 , file ) ; }
creates a url from the specified protocol name , host name , and file name . the default port for the specified protocol is used . < p / > this method is equivalent to calling the four - argument method with the arguments being protocol , host , - 1 , and file . no validation of the inputs is performed by this method .
