While is the basically a type of Java keyword, It is used to declare a loop that iterates a block of statements. The loop\'s exit condition is specified as part of the while statement.