Java doesn't have bool type variables. It does have boolean variables that can hold a value of true or false.

They are used to remember one of two states like: found or not found, good data or...