title: Why can't create instance of local class in Java?
body: <p>If I have this code.</p>
  
  <pre><code>public class Test{
          {
              class People {
  
              }
          }
  
          public static void main(String[] args) {
              People person = new People();//Compile ERROR
          }
  
      }
  </code></pre>
  
  <p>I can't create instance of People.</p>
  
  <p>Does that mean <strong>Initializer Block</strong> can't be used for defining classes?</p>