title: Is there a use of free floating block inside a method in Java?
body: <p>I didn't know methods could have floating blocks like this:</p>
  
  <pre><code>class X { 
      public static void main( String [] args ) {
          { //&lt;--- start
              int i;
          } //&lt;-- ends
      }
  }
  </code></pre>
  
  <p>I was aware of floating blocks outside methods, but never tried them inside. </p>
  
  <p>This could probably be used to define local scope or something. </p>
  
  <p>Is there a use for floating blocks inside methods in Java?</p>