title: Instantiate nested static class using Class.forName
body: <p>I have a <code>nested static class</code> like:</p>
  
  <pre><code>package a.b
  public class TopClass {
  
      public static class InnerClass {
      }
  }
  </code></pre>
  
  <p>I want to instantiate with <code>Class.forName()</code> but it raises a <code>ClassNotFoundException</code> .</p>
  
  <pre><code>Class.forName("a.b.TopClass"); // Works fine.
  Class.forName("a.b.TopClass.InnerClass"); // raises exception
  
  TopClass.InnerClass instance = new TopClass.InnerClass(); // works fine
  </code></pre>
  
  <p>What is wrong in my code?</p>
  
  <p>Udo.</p>