M

Mr. Dubey • 100.69K Points
Coach

Q. Is `object::staticMethod` a valid method reference?

  • (A) Yes
  • (B) No
  • (C) Only if the method is overloaded
  • (D) Only if the method is private
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category JAVA

Explanation by: Mr. Dubey
Static methods must be referenced by class name, not object name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics