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

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