What is the equivalent Java keyword/construct for C#'s default()?
<p>In C#, the default keyword sets a default value of a type parameter. This will be null for reference types and zero for value types.</p>

<p>I'm looking for an equivalent keyword or construct in Java. I'm very fuzzy on reference vs. value types in Java - do they behave the same?</p>

<p>I've got a function defined as</p>

<pre><code>private T BuildEntityFromResultSet(ResultSet resultSet)
{
    // Initialize T appropriately
    T entity = &lt;blank&gt;; // default(T) in C#.
}
</code></pre>

<p>Is there a keyword to initialize T properly that can fill in the blank above? Is it necessary to be concerned about an initial value (other than null) in Java?</p>

<p>I saw <a href="http://stackoverflow.com/questions/5201329/does-java-make-distinction-between-value-type-and-reference-type">this question</a>, but it doesn't seem to answer mine.</p>
