title: Why do we use * while importing classes from packages in java?
body: <p>For example while importing classes from IO package in java we use <code>import java.io.*</code>, instead of this why cant we use <code>import java.io</code> as import statement? When i use <code>import java.io</code> i get an error stating location: <code>package java</code>. Why is this error thrown?</p>