Compared with ternary operators:
Benefit: It can simplify if else code
The disadvantage is that it is an operator, so the operation must have a result.
The above basic Java tutorial_judgment statement if else is the entire content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.