M

Mr. Dubey • 100.28K Points
Coach

Q. Which of the following is NOT a valid method reference form?

  • (A) ClassName::staticMethodName
  • (B) objectName::instanceMethodName
  • (C) ClassName::instanceMethodName
  • (D) ClassName::fieldName
  • Correct Answer - Option(D)
  • Views: 3
  • Filed under category JAVA

Explanation by: Mr. Dubey
Field references are not valid method references; only methods or constructors can be referenced.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics