What is the output of the following Java program?
import java.util.function.Function;
public class Main {
public static void main(String[] args) {
Function<Integer, Integer> doubleIt = x -> x * 2;
Function<Integer, String> stars = n -> "*".repeat(n);
Function<String, Integer> len = String::length;
System.out.println(doubleIt.apply(21) + " " + stars.apply(3) + " " + len.apply(stars.apply(doubleIt.apply(2))));
}
}
doubleIt(2) = 4 → "****" → length 4.