This activity helps in processing a specific activity repeatedly when a particular condition is true. The primary difference between while and do while is that in the former one the condition will be evaluated first and then the loop will be executed.