Java initialization
<p>I've been coming across this code several times and I would like to know what it means or what it is equivalent to:</p>

<pre><code>A a = new A() {
  // declare some methods and whatever
};
</code></pre>

<p>What does the above mean? What is it equivalent to (if it is equivalent to anything)?</p>
