Moreover, as has been pointed out, at the byte code level there’s really no difference between the ternary operator and if-then-else . As in the above example, the decision on which to choose is based wholly on readability.
Moreover, as has been pointed out, at the byte code level there’s really no difference between the ternary operator and if-then-else . As in the above example, the decision on which to choose is based wholly on readability.