Why copy constructor is not used in Java?

In C++ that statement makes a copy of the object’s state. In Java it simply copies the reference. The object’s state is not copied so implicitly calling the copy constructor makes no sense .

Sizin İçin Seçtik  Is CPU mining safe?

Leave a Reply

Your email address will not be published. Required fields are marked *