Java Infinitew Recursion

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