Recent posts tagged ternary

4 1 1 min.
Though seldom used, ? operator have a significant usage in Java. Java include ? operator called **ternary** operator that can be used instead of certain *if-then-else* statements. How it works? Syntax : *condition ? expression1 : expression2* Her...
posted Sep 14 DivyaN 354 points
To see more, click for the full list of questions or popular tags.