Computer Science, asked by SƬᏗᏒᏇᏗƦƦᎥᎧƦ, 4 months ago

Explain ternary operators in Java​


Tomboyish44: Comments on our site should be used to collaborate on tasks - ask for more details, ask additional questions before giving an answer, etc. They can also be used to show your appreciation to the person who helped you. Kindly refrain yourself from misusing the comment section, asking for personal information is strictly prohibited.

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.
Tomboyish44: ---- No more comments -----
Anonymous: ok
indianlucky16: okay
Anonymous: ok

Answers

Answered by OreoMagie
2

\huge\fbox\red{❥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

Answered by Anonymous
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