Rekurencja Java Infinitew

public static void MyClass {
  System.out.println("Infinity");
  MyClass();
  //calls class inside of the class, creating infinite loop
  }
Wandering Warbler