Java tutorial
import java.io.IOException; import java.net.URL; public class Main { public static void main(String[] args) { try { URL url = new URL("http://www.java2s.com"); System.out.println("URL is " + url.hashCode()); } catch (IOException e) { e.printStackTrace(); } } }