Below code is compiling successfully where I am assigning bound method reference to functional interface.
Consumer<String> con = System.out::println;
But below code where I am assigning unbound method reference to functional interface is giving error.
Consumer<String> con = PrintStream::println;
Error message is
"Cannot make a static reference to the non-static method println(String) from the type PrintStream"
Help me to understand what is wrong here.