Q. What method reference would replace `() -> new Employee()`?

  • (A) Employee::getName
  • (B) Employee::new
  • (C) Employee::toString
  • (D) Employee::compareTo
πŸ’¬ Discuss
βœ… Correct Answer: (B) Employee::new
Explanation: `Employee::new` is the constructor reference replacing the no-arg lambda.
Explanation by: Mr. Dubey
`Employee::new` is the constructor reference replacing the no-arg lambda.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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