Computer Science, asked by ishatvns1107, 7 months ago

hey guys if anybody uses java :- switch ifelse if ternary can ask question I am eager to answer it

Answers

Answered by rairohitraj7
1

Answer:

The ternary operator, also known as the conditional operator, is used as shorthand for an if...else statement. A ternary operator is written with the syntax of a question mark ( ? ) followed by a colon ( : ), as demonstrated below. In the above statement, the condition is written first, followed by a ? .0

Similar questions