Which of the following method references can be passed to a method that takes Consumer<Object> as an argument?
D.
First of all, Consumer<Object> takes a single Object argument and does not return any data.
The classes ArrayList and String do not contain constructors that take an Object, so neither of the first two statements are correct.
The third statement does support an Object variable, since the System.out.println(Object) method exists.
Option D is the correct answer.