Which of the following is a correct statement about constructors in Java?

PYQ RPSC Programmer 2024

Which of the following is a correct statement about constructors in Java?

  1. A.

    Constructors cannot be overloaded.

  2. B.

    A constructor can be called directly like a regular method.

  3. C.

    A constructor does not have a return type, not even void type.

  4. D.

    A class can have only one constructor.

  5. E.

    Question not attempted

Attempted by 368 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…