title: Dynamic class loading with Java
body: <p>I want to dynamically load a concrete class which implements an interface. Input: concrete class name.</p>
  
  <p>I need to call a method in this concrete class, that is, I'll need to set:</p>
  
  <pre><code>MyInterface myclass = new concreteClassName();
  myclass.function();
  </code></pre>
  
  <p>How can I achieve this?</p>