Q. What method reference could map Employee objects to their ages?

  • (A) Employee::getName
  • (B) Employee::getAge
  • (C) Employee::compareTo
  • (D) Employee::new
πŸ’¬ Discuss
βœ… Correct Answer: (B) Employee::getAge
Explanation: `Employee::getAge` retrieves the age property.
Explanation by: Mr. Dubey
`Employee::getAge` retrieves the age property.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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