A

Admin • 828.03K Points
Coach

Q. What is the return type of a constructor in Java?

  • (A) void
  • (B) int
  • (C) The same as the class name
  • (D) String
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
Constructors are special methods in Java used to create objects of a class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.