Check your knowledge — 8 questions
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.
Nothing is printed
An exception occurs at runtime
Compilation fails
1
0
0 selected