1 2 3 4 5 6 7
import java.util.function.Function; class Sample { { Function<? extends String, ? extends Integer> f = (String s) -> s.length(); } }