ternary operator : Java Glossary


ternary operator
Java has a short hand way by using ? : the ternary aka conditional operator for doing ifs that compute a value. Unlike the if statement, the conditional operator is an expression which can be used for It is good form if the types of the true and false possibilities in the ternary expression match each other and the target, otherwise you may get some surprises when Java coerces types to match.

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number