A

Admin • 828.03K Points
Coach

Q. In Java, can a constructor have a return type?

  • (A) No, constructors do not have a return type
  • (B) Yes, it must have the same return type as the class
  • (C) Yes, it can have any return type
  • (D) Yes, but it must be "void"
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.