java infinitew recursion

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

Also in Java: