Home / Programs / Infinitive While Loop
Programming Example

Infinitive While Loop

👁 2,330 Views
💻 Practical Program
📘 Step by Step Learning
Infinitive While Loop Java Program

Program Code

 public class InfiniteWhileLoop {
	public static void main(String[] args)
		{
  		  while(true)
   		 {
    	    System.out.println("infinitive while loop");
    	 }
	}
}

  

Output

infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
infinitive while loop
.
.
.
.

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.