about tenary oprator in java.
Answers
Answered by
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...
.
.
.
.
.
.
hope you like this answer...
.
.
.
Answered by
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