dash statmement used for replace ternary oppretor
Answers
Answered by
0
Answer:
Hii ,
Java ternary operator is the only conditional operator that takes three operands. Java ternary operator is a one liner replacement for if-then-else statement and used a lot in java programming. We can use ternary operator to replace switch also as shown in below example.
Similar questions