java : Confused with Method.getClass().getMethod.invoke Operation here 
<p>I have a class Child and class Parent as shown below </p>

<p>Please see the syntax's of these two classes below .</p>

<pre><code>class Child extends Parent 
{
Response resp = new Response();
if(2&lt;3)
{
resp = performSomeAction();
}
}


class Parent
{
protected Response performSomeAction() throws Exception {
        Method action = null;
        action = getClass().getMethod(request.action, null);
        return (Response) action.invoke(this, null);
    }
}
</code></pre>

<p>I am confused here , could anybody please let me know what is the  class Parent logic here ?
Could anybody please let me know what it is doing exactly ??</p>

<p>Please share your views . Thank you very much .  </p>
