Java while loop is used to execute statement(s) repeatedly until the particular condition is satisfied-While loop in Cpp programming language