java infinitew recursion code example
Example: java infinitew recursion
public static void MyClass {
System.out.println("Infinity");
MyClass();
//calls class inside of the class, creating infinite loop
}
public static void MyClass {
System.out.println("Infinity");
MyClass();
//calls class inside of the class, creating infinite loop
}