short hand if...else (ternary operator) java code example Example: java ternary operator Object myObject = booleanExpression ? valueIfTrue : valueIfFalse;