πŸ“Š JAVA
Q. Can a method reference refer to a method with parameters?
  • (A) No
  • (B) Yes, if compatible with the functional interface
  • (C) Only static methods
  • (D) Only constructors
πŸ’¬ Discuss
βœ… Correct Answer: (B) Yes, if compatible with the functional interface

Explanation: A method reference can refer to a method with parameters as long as it matches the functional interface signature.

Explanation by: Mr. Dubey
A method reference can refer to a method with parameters as long as it matches the functional interface signature.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
37
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate