Start learning →

Which symbol pair forms Java's ternary operator?

AColon and semicolon
BAmpersand and pipe
CQuestion and colon
DPlus and minus sign
Answer & Solution
Correct answer: C. Question and colon
Java represents the ternary conditional operator using a question mark and colon.
Practise this question with Quill — ICSE Class 8 →

Keep practising Conditional Statements in Java

Browse all Conditional Statements in Java questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Conditional Statements in Java lesson →