title: Why to override clone method in Java
body: <p>I am confused regarding overriding clone method in the class for which I want cloned object.</p>
  
  <p>Object class has <strong>protected object</strong> method and as per the protected behavior which is <strong>When a method is protected, it can only be accessed by the class itself, subclasses of the class, or classes in the same package as the class</strong>.</p>
  
  <p>As every class in Java extends from Object, so it should have clone method but still we are forced to override clone. Why is it required?</p>
  
  <p>Also, I have read at some places to override the clone object and make it public. I wonder, why is it so?</p>
  
  <p>All answers are welcome.</p>