Java Ternary Operator With Program Example
Java Ternary Operator With Program Example
Java supports a special type of operator which can be used in place of a certain if-then-else statement situation. It is represented by ‘?:’ . It concise the code structure and improves the code readability. As name suggest, ternary, it consists of three parts : condition truthy statement falsy statement Based on condition evaluation, the operator decides which statement, tuthy or falsy that…
View On WordPress












