can we access public method defined in a default class outside the package in java?
<p>The main method in java is defined as a public method, and this method is defined in a default class. lets say</p>

<pre><code>class test{
    public static void main(String args[]){
        System.out.println("Hi");
    }
}
</code></pre>

<p>can you please explain how the JVM is able to access this main method as the class is default and it can be accessed only with in the package.</p>
