M

Mr. Dubey • 100.69K Points
Coach

Q. What is the purpose of a method reference in Java?

  • (A) To create anonymous classes
  • (B) To reference methods without executing them
  • (C) To invoke methods immediately
  • (D) To define interfaces
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category JAVA

Explanation by: Mr. Dubey
Method references refer to methods without executing them, used in functional programming.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics