The Java Object clone() method creates a shallow copy of the object . Here, the shallow copy means it creates a new object and copies all the fields and methods associated with the object. The syntax of the clone() method is: object.clone()
Read more