This will crash if the returnABoolean() returns null because the JLS says: If the second and third operands are both of type Boolean, the conditional expression has type Boolean. Otherwise, the ...