About Question enthuware.ocpjp.v11.2.3081 :
Posted: Wed Dec 09, 2020 1:31 pm
What s the difference between
And the
The debug method is instance method as well
Code: Select all
DoubleStream.generate(Random::nextDouble).limit(10).forEach(System.out::print);
[size=85]nextDouble() is an instance method of Random. So, Random::nextDouble is incorrect here.[/size]
Code: Select all
slist.forEach(Student::debug);