53.1k views
3 votes
What kind of operator is used to write a condition statement in a java loop. A.logical B.comparsion C.mathematical D.assignment

User Zzxyz
by
7.9k points

1 Answer

3 votes
It has to be B, a comparison, because the comparison evaluates to a boolean that is the condition to continue or end the loop.
User Johannes Thoma
by
8.6k points