Explain ternary operators in Java
Answers
Answered by
2
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
Answered by
3
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
Similar questions
Computer Science,
3 months ago
Math,
3 months ago
English,
3 months ago
Hindi,
6 months ago
Math,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago
Posting comments that are against the terms of use further will result in strict actions being taken on the person/s doing so, please be advised.