title: What is the use of Objects getClass().getMethod?
body: <p>Could anybody please let me know when should we use:</p>
  
  <pre><code>Object.getClass().getMethod (action, null);
  </code></pre>
  
  <p>I found out that this belongs to the Java reflection package. I am asking this question because, in our existing application, we have this code, but I can't find out what's its use.          </p>
  
  <pre><code>Method action = null;
   try {
      action = getClass().getMethod (action, null);
   }
   catch (NoSuchMethodException x) {
   }
   return (TAPResponse) action.invoke (this, null);
  </code></pre>
  
  <p>What is this doing in this case?</p>
  
  <p>And why is the return statement in such a way? What will be returned?</p>