Initial value for a instance variable in Java
<p>In Java, unlike in C++, we can provide an initial value for a field in its declaration: </p>

<pre><code>public class BedAndBreakfast {

    public int capacity = 10;  //initialize to 10

    private boolean full = false;  //initialize to false
}
</code></pre>

<p>Why was there a need to allow this while it can be done more clearly in a constructor?</p>
