java.net.HttpURLConnection is an abstract subclass of URLConnection that provides some additional methods specific to the HTTP protocol.
java.net.HttpURLConnection
URLConnection
URL connection objects that are returned by an http URL will be instances of java.net.HttpURLConnection.