title: Why would URL.openConection() throw an IOException.
body: <p>Assuming a http scheme (i.e. <code>new URL (“http://www.google.com/”)</code>) ,would not the <code>IOException</code> be thrown on <code>myHttpURLConnection.connect()</code> and not on <code>myHttpURLConnection = myURL.openConection()</code>.</p>
  
  <p>I mean <code>instanceURL.openConection()</code> doesn't seem to open a connection immediately, and if so how can there be an <code>IOException</code>.</p>
  
  <p>Thank You in advance.</p>