95.8k views
2 votes
Given the variables, which boolean condition is true?
int a = 7;
int b = 7;

User Fylax
by
6.4k points

1 Answer

6 votes

Answer:

The boolean condition that is true is a == b, which checks if the values of the variables a and b are equal. Since both a and b have been assigned the value of 7, this condition will evaluate to True.

User Ffriend
by
5.6k points