title: Does importing of packages change visibility of classes?
body: <p>I jsut learned that</p>
  
  <blockquote>
    <p>A class may be declared with the
    modifier public, in which case that
    class is visible to all classes
    everywhere. If a class has no modifier
    (the default, also known as
    package-private), it is visible only
    within its own package.</p>
  </blockquote>
  
  <p>This is a clear statement. But this information interfere with my understanding of importing of packages (which easily can be wrong). I thought that importing a package I make classes from the imported package visible to the importing class.</p>
  
  <p>So, how does it work? Are public classes visible to all classes everywhere <strong>under condition</strong> that the package containing the public class is imported? Or there is not such a condition? What about the package-private classes? They are invisible no mater if the containing package was imported or not?</p>
  
  <p>ADDED:
  It seems to me that I got 2 answers which are marked as good (up-voted) and which contradict eachother.</p>