Is Java object clone () deep copy?

Whenever you try to create a copy of an object, in the deep copy all fields of the original objects are copied exactly, in addition to this, if it contains any objects as fields then copy of those is also created (using the clone() method).

Sizin İçin Seçtik  How do I change notification permissions?

Leave a Reply

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