Infinite for loop in java

Java Programming Language Decision Making and Looping in java (Article) Decision Making and Looping in java (Program)

1449

Program:

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

Output:

infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
infinitive loop
.
.
.
.
.

This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.