In Java, Ternary Operator is the only operator which operates on three operands. In this video, we will look into the syntax of the ternary operator and then, we will create an example to calculate the difference between two numbers.
We will also see how the operator is useful to always get the difference as a positive number.