in Education by

What are method references?

Please log in or register to answer this question.

1 Answer

0 votes
by

What are method references in Java8?

Method references help to point to methods by their names. A method reference is described using :: (double colon) symbol. A method reference can be used to point the following types of methods -

Static methods

Instance methods

Constructors using new operator (TreeSet::new)

Related questions

0 votes
asked Feb 26, 2022 in Education by JackTerrance
0 votes
asked Oct 24, 2021 in Education by JackTerrance
0 votes
asked Apr 26, 2022 in Education by JackTerrance
...