Ternary Operator in Java

In the post conditional operators in Java we talked about the Conditional-AND and Conditional-OR operators, here we’ll talk about another conditional operator known as ternary operator in Java (?:). Ternary operator uses three operands thus the name ternary operator and it can be used in place of if-else statement or…

Continue reading