πŸ“Š JAVA
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

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