Computer Science, asked by lincyrenji9729, 2 months ago

example of ternary operator in java

Answers

Answered by chirag872007
1

Answer:

The Java ternary operator functions as a simplified Java if statement. The ternary operator consists of a condition that evaluates to either true or false , plus a value that is returned if the condition is true and another value that is returned if the condition is false

Explanation:

Similar questions