Use of || operator for alternative assignment
<p>In JavaScript, I may define: </p>

<pre><code>num = numerator || 0;
denom = denominator || 1;
</code></pre>

<p>Yet, in Java, this cannot be applied.</p>

<p>Without using conditionals (explicitly written), is there a concise way to achieve this "if undefined, assign to this"?</p>
