title: I don't really understand the purpose of brackets enclosing code
body: <p>I'm just playing with integer arrays and find that the following won't compile with multiple errors:</p>
  <pre><code>   public class GetData{
     int[]       arr = new int[5];
     arr[0] = 30;
                      }
  </code></pre>
  <p>But if I add some brackets around the code it compiles:</p>
  <pre><code>   public class GetData{
     {
     int[]       arr = new int[5];
     arr[0] = 30;
     }                    }
  </code></pre>
  <p>Probably there is something fundamental that I'm not understanding.
  I don't why the first code section won't compile.</p>