Assigning value for member variables while creating instance in java
<p>While going through one of the library, I found the following construct in java which is really new for me. Assume there is a class <code>Point</code> in <code>java</code>. <br></p>

<pre><code>class Point {
    int x;
    int y;
    public Point() {}
    public Point(int x, int y) {
    this.x = x;
    this.y = y;
    }
}
</code></pre>

<p>While creating instance for <code>Point</code>, they initialize the variables <code>x</code> and <code>y</code> in the instance creation itself as below :</p>

<pre><code>Point inst = new Point() {
            {
                this.x = 10;
                this.y = 20;
            }
        };
</code></pre>

<p>Is this related to <code>instance block</code> in java or something different?</p>
