title: Commands in anonymous blocks inside a class of any use
body: <p>If seen this question here:
  <a href="https://stackoverflow.com/questions/30936232/instance-initializer-and-this-keyword">Instance initializer and *this* keyword</a></p>
  
  <p>and now I ask myself is something like this:</p>
  
  <pre><code>public class Main {
  
      public static void main(String args[]) {    
          new Main();
      }
  
      { System.out.println(x); } //Error here
  
      int x=1;
  }
  </code></pre>
  
  <p>of any (even just theoritical) use? I mean this part:</p>
  
  <pre><code> { System.out.println(x); } //Error here
  </code></pre>
  
  <p>As far as I can say its anonymous so I'd have no idea how to execute it manually, it doesn't seem to be executed automatically is not part of any function or whatsoever. Sorry if this questions is already answered, but the ones that I found targeted {} to restrict the variable scope but in this case I could not think of a way to get into that scope or make it run.</p>