Computer Science, asked by vicky8875, 1 year ago

about tenary oprator in java.

Answers

Answered by upomabiswas
2
ternary operator (also known as the conditional operater ) in java is used to assign minimum value of two variables to the third variable ... example : minvalue=( a < b ) ? ( a : b );
.
.
.
hope you like this answer...
.
.
.
Answered by Anonymous
1

Answer:

The ternary operator is a part of Java's conditional statements. As the name ternary suggests, it is the only operator in Java consisting of three operands. The ternary operator can be thought of as a simplified version of the if-else statement with a value to be returned.

Similar questions