inner class and static method java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/975134/why-cant-we-have-static-method-in-an-inner-class">Why cant we have static method in an inner class?</a>  </p>
</blockquote>



<p>I am not knowing why an inner class cannot have static method.
Why is it wrong ???</p>

<pre><code>class A1
{
class B1
{
     static void fun()
    {
        System.out.println("HIII");
    }
}
public static void main(String[] args)
{
A1 a = new A1();
A1.B1 b = new a.B1();
b.fun();
}
}
</code></pre>

<p>If an outer class object can access a static method and a variable y not a inner class get the access ? What are the problems. 
I am seriously new to this. And I need some help and explanation.</p>

<p>Thanks
Sindhu</p>
