1.

What Are Method References?

Answer»

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)

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 −



Discussion

No Comment Found