What's the point of instantiating an object and not assigning it to a variable in Java?
<p>What is the use of the <code>new</code> keyword when you don't assign the resulting object to a reference?</p>

<p>here is sample. </p>

<pre><code>public static void main(String[] args) {ample.
    Display display = new Display();

    new SWTApp(display);

    display.dispose();
}
</code></pre>
