In JavaScript, I may define: 

```
num = numerator || 0;
denom = denominator || 1;

```

Yet, in Java, this cannot be applied.

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