Which of the following is true about Java constructors?

Last Updated :
Discuss
Comments

Which of the following is true about Java constructors?

Constructors have a return type of void.

Constructors must always be public.

A constructor is automatically called when an object is created.

Constructors can only be defined explicitly.


Share your thoughts in the comments