Q. Which type of method reference is `Employee::getName` when used in mapping operations?

  • (A) Static method reference
  • (B) Instance method of an arbitrary object
  • (C) Instance method of a specific object
  • (D) Constructor reference
πŸ’¬ Discuss
βœ… Correct Answer: (B) Instance method of an arbitrary object
Explanation: `Employee::getName` refers to an instance method of arbitrary objects of Employee.
Explanation by: Mr. Dubey
`Employee::getName` refers to an instance method of arbitrary objects of Employee.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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