What is an infinite loop in Java? Explain with an example

An infinite loop is an instruction sequence in Java that loops endlessly when a functional exit isn't met. This type of loop can be the result of a programming error or may also be a deliberate action based on the application behavior. An infinite loop will terminate automatically once the application exits.

Example

public class InfiniteForLoopExample
{
    public static void main(String[] arg) 
    {
        for(;;)
        {
            System.out.println("ProgramsBuzz");
        }
    }
} 

Above program will keep on printing ProgramsBuzz.