Q. Which type of method reference is demonstrated by `String::toUpperCase`?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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