java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santoshmiracle
    New Member
    • Jul 2007
    • 12

    java

    please explain about cloneable interface
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by santoshmiracle
    please explain about cloneable interface
    Check out the index article in the Java Articles section. At the end a link is
    supplied to the API documentation. The Object class contains an elaborate
    explanation about the clone() method and the Cloneable interface.

    kind regards,

    Jos

    ps. please make up a better subject title next time

    Comment

    • mahammadseeraz
      New Member
      • Jul 2007
      • 6

      #3
      Originally posted by santoshmiracle
      please explain about cloneable interface
      A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of that class.

      Attempts to clone instances that do not implement the Cloneable interface result in the exception CloneNotSupport edException being thrown.

      Comment

      Working...