While

Repeat code while a Boolean condition is true.

while(true) {
}

The while loop has a condition that evaluates to a Boolean value.

The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn’t execute.