Start learning →

How is the middle operand of a conditional operator (?:) parsed?

AAs if parenthesized
BAs a syntax failure
CAs a static constant
DAs an empty argument
Answer & Solution
Correct answer: A. As if parenthesized
The expression positioned between ? and : is parsed as though parenthesized.
Practise this question with Quill — ICSE Class 8 →

Keep practising Operators in Java

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

Start a Operators in Java lesson →