What is tarnery operator on java. No copied answer is allowed
Share
What is tarnery operator on java. No copied answer is allowed
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Tarnery operator on java is the only conditional operator that takes 3 operands .
Answer:
The Java ternary operator functions like a simplified Java if statement. The ternary operator consists of a condition that evaluates to either true or false , plus a value that is returned if the condition is true and another value that is returned if the condition is false