1.

What do you mean by ternary operator in java?

Answer»

It is the only conditional operator that can take THREE OPERANDS and assists in EVALUATING Boolean expressions. It is a replacement for if-then-else statement and is USED a lot to replace the SWITCH. Its goal s to decide what value should the variable be assigned.



Discussion

No Comment Found