The infinite Loop. All the loops have a limited life and they come out once the condition is false or true depending on the loop. A loop may continue forever if the required condition is not met. A loop that executes forever without terminating executes for an infinite number of times. For this reason, such loops are called infinite loops. Example.