Computer Science, asked by poison2, 1 year ago

what is tenary operator in java?

Answers

Answered by LonelyHeart
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.
Similar questions