Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Have you ever used object cloning? Do you think its beneficial?

user-image
Question added by Rehan Faiz Mohammad , Research Assistant , Texas A&M University
Date Posted: 2014/11/02
Abdul Khadeer Pasha Shaik
by Abdul Khadeer Pasha Shaik , Senior Software Engineer , Vedicsoft Solutions India Pvt Ltd

Yes , Java Object cloning has more disadvantages than advantages.

The general recommendation is to use a copy constructor instead of using clone() or Cloneable. Avoid clone at all costs and go for your own copy solution.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.