what is the difference between return this vs return new Class()
<p>recently i was going through an article in hibernate.I have seen this please enlighten me on this</p>

<pre><code>public Criteria createCriteria(String associationPath, String alias, int joinType) {
    return new Subcriteria( this, associationPath, alias, joinType );//return new object
}


public Criteria createAlias(String associationPath, String alias, int joinType) {
    new Subcriteria( this, associationPath, alias, joinType );
    return this;//return this
}
</code></pre>