Tests: Method References

Check your knowledge — 8 questions

Progress 1/8

Question 1 of 8

Given:

class SomeClass {
    SomeClass() {
        System.out.println(0);
    }
    SomeClass(String s) {
        System.out.println(1);
    }
}
public class Test {
    public static void main(String[] args) {
        BiFunction<String, String, SomeClass> f = SomeClass::new;
        f.apply(null, null);
    }
}

What is the output of the code?

Select all that apply.

0 selected