java method local inner class
<p>i am trying to pass method local inner class object as an argument to some other function either in the scope of outside class or out of that class</p>

<pre><code>public class MethodClass {
public void p(){
    class h{
        public void h1(){
            System.out.print("Java Inner class");
        }
    }
    h h2=new h();
}
}
</code></pre>

<p>here h2 i want to pass to any other function in the same class MethodClass or out of that class. can any one give me the procedure to pass the argument in that way?</p>
