Using arrays in a class
<p>Why can I do:</p>

<pre><code>public class ThisTest {
    int[] anArray  = new int[10];             
    public int[] getArr(){
        anArray[0] = 100;
        anArray[1] = 200;
        return anArray;                    
    } 
}
</code></pre>

<p>But not:</p>

<pre><code>public class ThisTest {
    int[] anArray  = new int[10];     
    anArray[0] = 100;
    anArray[1] = 200;   
}
</code></pre>
