Object Literals In Java?
<p>I am learning GWT for web development and came across a piece of code I can't really understand.</p>

<pre><code>helloBtn.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
        Window.alert("Hello!");
    }
});
</code></pre>

<p>If someone could explain to me what it is doing that would be great.</p>

<p>Thanks, John</p>
