What is the purpose of clone() function, of Object class?
It is empty, if some body wants, they have to provide their own implementation for the same.
it provides the shallow copy implementation, but if you want deep copy, then you have to override and implement on your own.
it provides both shallow copy and deep copy of an object into a new object.
Back To Top