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

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