title: What does a Type-Import-on-Demand Declaration import?
body: <p>In Java, there are two valid forms of the <code>import</code> declaration:</p>
  
  <ul>
  <li><code>import java.lang.Math;</code></li>
  <li><code>import java.lang.Math.*;</code></li>
  </ul>
  
  <p>In the latter, a wildcard is used. This form is known as a Type-Import-on-Demand declaration, but how is it different from the former? Does it also import the subpackages of <code>java.lang.Math</code>?</p>
  
  <p>What if <code>Math</code> were a Type (<em>e.g.</em>, a class)&mdash;would all of its inner classes be imported?</p>