I have a class which are referred in many places and contain different data types of variables.
For my new requirement, i want to make the copy the that object.
for that reason i implements the clonable interface and make the clone of that object.
I do not have any compiler error.
however, i am thinking whether it will have any impact where this class file referred.
If your question is "will changing an existing class by having it implement Cloneable break existing code which uses this class" then the answer is it depends on what your other code does. Ivan's example, whilst a little contrived, does show that existing code may break if you are relying on that class to not implement Cloneable.