title: How to create reflection class in java and is there any possible way to pass more than two class as argument
body: <p>I'm trying to pass more than two class in code given below </p>
  
  <pre><code>getMethod(methodName, new Class[] { rootBean.getClass() })
  </code></pre>
  
  <p>and I want to create object from argument class so that I can call method of arugment class.</p>
  
  <pre><code>if(obj==null) { 
      ClassA.getMethod((methodName, new Class[] { rootBean.getClass() }));
  } else {
      // other operation
  }
  </code></pre>