Java Ternary Operator a.k.a Conditional Operator

The conditional operator is very similar to the if/else or switch conditional statements and is the only operator in Java that takes three operands. Therefore, conditional operator is also known as ternary operator. This operator not only has three operands but can also be used in variety of ways to make the code more concise. So, we take a deeper than… Continue reading Java Ternary Operator a.k.a Conditional Operator