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
History,
2 months ago
Hindi,
4 months ago
Math,
10 months ago
English,
10 months ago
Social Sciences,
10 months 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.