title: Why static nested class in java.lang.Thread implementation is not visible?
body: <p>The following code works perfectly.</p>
  
  <pre><code>public class StaticClass {
  
  public static void main(String[] args) {
      L.P h = new L.P();
      h.show();
  
  }
  
  }
  
  class L {
  
  static class P {
      public void show() {
          System.out.println("This is static nested class.");
      }
  }
  
  }
  </code></pre>
  
  <p>Then why static nested class "static class WeakClassKey extends WeakReference> " in java.lang.Thread class is not accessible by "Thread.WeakClassKey t;" in my class?</p>
  
  <p>The source code for java.lang.Thread can be found here: <a href="http://www.docjar.com/html/api/java/lang/Thread.java.html" rel="nofollow">http://www.docjar.com/html/api/java/lang/Thread.java.html</a> [in  line# 1984].</p>