Object cloning is used to create an exact copy of an object by typing the same code or using various other techniques.