Start learning →

What type must the condition expression evaluate to in a Java loop?

Abyte or short
Bint or Integer
CObject or null
Dboolean type
Answer & Solution
Correct answer: D. boolean type
Loop conditions in Java must evaluate to a boolean or java.lang.Boolean value.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →