Ternary Operator or If Expression?

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-04-25T06:19:01Z Indexed on 2010/04/25 6:23 UTC
Read the original article Hit count: 266

Filed under:
|

When is a good design decision to use the Ternary Operator over if then else clause? Are there any efficiency hit? Do they get compiled to the same code? Do you think one is more readable than the other in some cases?

© Stack Overflow or respective owner

Related posts about java

Related posts about ternery-operator