1.

What is method reference in Java 8?

Answer»

Method REFERENCES support in POINTING to the METHODS by their names. A method reference is denoted by USING "::" symbol. A method reference is used to indicate the following methods

  • Static methods
  • Instance methods
  • Constructors using new operator (TreeSet::new)

This is a fundamental QUESTION in java 8 interview questions.



Discussion

No Comment Found