Q. What is the purpose of method references like `String::length`?

  • (A) To create a new object
  • (B) To call constructors
  • (C) To refer to an existing method
  • (D) To define a variable
πŸ’¬ Discuss
βœ… Correct Answer: (C) To refer to an existing method
Explanation: Method references refer to existing methods without invoking them immediately.
Explanation by: Mr. Dubey
Method references refer to existing methods without invoking them immediately.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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