M

Mr. Dubey • 100.69K Points
Coach

Q. Which form of method reference is used to refer to an instance method of an existing object?

  • (A) ClassName::methodName
  • (B) object::methodName
  • (C) ClassName::new
  • (D) ClassName::staticMethod
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category JAVA

Explanation by: Mr. Dubey
The syntax `object::methodName` refers to an instance method of an existing object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics