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
πŸ’¬ Discuss
βœ… Correct Answer: (B) To reference methods without executing them
Explanation: Method references refer to methods without executing them, used in functional programming.
Explanation by: Mr. Dubey
Method references refer to methods without executing them, used in functional programming.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate