title: Clone method not visible
body: <p>why do i am getting clone method not visible of object class</p>
  
  <pre><code>class a7 implements Cloneable
  {
      int id;
      float f;
  
  }
  
  class test
  {
      public static void main(String[] args) throws CloneNotSupportedException {
          a7 x=new a7();
          //      x.clone(); //here i am getting the error
      }   
  
  }
  </code></pre>
  
  <p>though clone method is protected and it is accessible by subclasses and and the one in the same package and we know that every class by default are subclasses of object class</p>