vendredi 16 décembre 2016

what is faster in java ternary operator or if else block

what is faster in java ternary operator or if else block?? explain with reason. Cyclomatic complexity for both are same or not?? explanation needed. If both have the same impact in coding or application performance why both of these are introduced.only one of them can be introduced.( provide reason except that ternary removes some extra coding effort ). Well explained answer is appreciated.

Aucun commentaire:

Enregistrer un commentaire