what is tenary operator in java?
Answers
Answered by
2
Hey friend,
Here is your answer:
A ternary operator in Java is a conditional operator. The value returned by the expression depends on a condition. If the expression evaluates to 'true' then the value of the first expression is shown as result otherwise it shows 'false'.
Hope it helps u.
Here is your answer:
A ternary operator in Java is a conditional operator. The value returned by the expression depends on a condition. If the expression evaluates to 'true' then the value of the first expression is shown as result otherwise it shows 'false'.
Hope it helps u.
Similar questions