Technical Discussion :: Java
Home > Freshers > Technical Interview Questions > Java
46. What is object cloning?
Answer:
Object cloning, clone() is the method available in Java for object duplication. In java, assignment operator only copies the reference and not the object. clone() is used for this.
Asked In :: Syntel Inc. Accenture Sopra Steria
Object cloning, clone() is the method available in Java for object duplication. In java, assignment operator only copies the reference and not the object. clone() is used for this.