M

Mr. Dubey • 100.69K Points
Coach

Q. Which is a valid method reference to a constructor?

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

Explanation by: Mr. Dubey
`ClassName::new` refers to a constructor reference.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics