concept ternary construct in category java
appears as: ternary construct, ternary constructs

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.
In this section, we’ll cover if, if-else, and ternary constructs. We’ll examine what happens when these constructs are used with and without curly braces {}. We’ll also cover nested if, if-else, and ternary constructs.
Figure 5.6. Comparing a ternary construct with an if-else construct
![]()