I don\'t understand the mechanism of cloning custom object. For example:
public class Main{ public static void main(String [] args) { Person pe
if you dont declare cloneable interface you should be getting CloneNotSupportException when you call clone method.If you declare and then call clone method it will make shallow copy.