Login and Register ×
Check your Email for the OTP
Java Programming Language TCS Core Java Questions
⚠ Report ✓ Question Verified Copy Link
Explanation:
The correct option is:
Ternary Operator
The ternary operator in Java is a conditional operator that takes three operands and is used as a shorthand for an if-else statement. Its syntax is: condition ? expression1 : expression2.
if-else
condition ? expression1 : expression2
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Java Programming Language TCS Core Java Questions