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.
 

Ternary Operator Explained With Example
Aug 09 2019

Sivaraman Dhamodaran

This video explains how one can use the Ternary Operator in Java language.