0 votes
in JAVA by

Which of the following is true about method references in Java 8?

a) They are a way to create new instances of classes.

b) They are a way to invoke constructors of classes.

c) They are a way to refer to methods or constructors of classes.

d) They are a way to define anonymous inner classes.

1 Answer

0 votes
by
Answer: c) They are a way to refer to methods or constructors of classes.

Explanation: Method references are a shorthand way of referring to an existing method or constructor of a class, without the need to create a lambda expression.
...