Java : Ternary/Conditional Operator
The Ternary Operator also known as Conditional Operator. If this logical expression result is true then only block or statements of expression1 will execute otherwise control will reach to expression2.
Ternary operator is equivalent to if-else statementIf this logical expression execution result is true then only the block associated with if statement will execute otherwise control will reach to…
View On WordPress













