Q. Which method reference is valid for invoking an instance method on a particular object?

  • (A) ClassName::methodName
  • (B) objectName::methodName
  • (C) ClassName::new
  • (D) this::methodName
πŸ’¬ Discuss
βœ… Correct Answer: (B) objectName::methodName
Explanation: objectName::methodName is used for referring to an instance method of a specific object.
Explanation by: Mr. Dubey
objectName::methodName is used for referring to an instance method of a specific object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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