"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.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.
posted 1 month 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.