Computer Science, asked by anjalirajesh794, 10 months ago

what is the use of ternary operator in Java​

Answers

Answered by bakanmanibalamudha
5

Explanation:

Java Ternary Operator. The Java ternary operator functions like 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 .

Thank you

Answered by naishrahgajkandh
7

Answer:

Java Ternary Operator. The Java ternary operator functions like 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:

Hope it helps you

Hope it helps youand pleeeeeeease mark my answer as Brainlist

Similar questions