Java class visible only to current file
<p>Is it possible in Java to define a outer class (i.e. the top level) such that it is only visible to this file? I'd like to have something like static keyword in c++ for restricting visibility in file scope.</p>

<p>If not, why is that and what is the workaround?</p>

<p>Thanks.</p>
