"Ternary" is just a description for the type of operator.
Monadic operators have only one operand: i++
Binary operators have 2 operands: a + b
Ternary operators have 3 operands: (a < b)? a+1 : b-1
You can use the name "ternary" because there's only one ternary operator in Java, but it's a sloppy thing to do.
Java doesn't split words for meaning. However, there is a convention in JavaBeans that the read access method for a boolean property should have its name begin with "is" instead of "get", although "get" usually works as well.
So in common usage, you might have:
Note how the first letter of the property name is capitalized after the "is". That, too is part of the JavaBean conventions. These aren't inherent properties of the Java language, but the bean tools use these naming conventions to make it easier to construct generic access mechanisms.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
posted 4 months ago
Hari Nagarjuna wrote:. . . I was trying to determine if ternary operator is used in the line below I've seen in a book. . . . Now I am clear that it's just plain old variable declaration.
Anderson gave himself the promotion. So I gave myself this tiny ad: