Initialize member variables in the beginning of class definition or in constructor?
<p>What is the difference between <em>defining and initialising the member variables in the beginning of the class definition</em>, and <em>defining the member variables first and initialising the member variables in the constructor</em>?</p>

<p>Say, for example: </p>

<pre><code>public class Test {
   private int foo = 123;
   private boolean flag = false;

   public void fooMethod() {}
}
</code></pre>

<p>Versus:</p>

<pre><code>public class Test {
   private int foo;
   private boolean flag;

   public Test() {
      foo = 123;
      flag = false;
   }

   public void fooMethod() {} 
}
</code></pre>

<p>Thanks in advance.</p>
