Discussion :: JAVA MCQs
- What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3
Answer : Option C
Explanation :
The controlling condition of ternary operator must evaluate to boolean.
Be The First To Comment