equal
deleted
inserted
replaced
34 * Invoking Object's clone method on an instance that does not implement the |
34 * Invoking Object's clone method on an instance that does not implement the |
35 * <code>Cloneable</code> interface results in the exception |
35 * <code>Cloneable</code> interface results in the exception |
36 * <code>CloneNotSupportedException</code> being thrown. |
36 * <code>CloneNotSupportedException</code> being thrown. |
37 * <p> |
37 * <p> |
38 * By convention, classes that implement this interface should override |
38 * By convention, classes that implement this interface should override |
39 * <tt>Object.clone</tt> (which is protected) with a public method. |
39 * {@code Object.clone} (which is protected) with a public method. |
40 * See {@link java.lang.Object#clone()} for details on overriding this |
40 * See {@link java.lang.Object#clone()} for details on overriding this |
41 * method. |
41 * method. |
42 * <p> |
42 * <p> |
43 * Note that this interface does <i>not</i> contain the <tt>clone</tt> method. |
43 * Note that this interface does <i>not</i> contain the {@code clone} method. |
44 * Therefore, it is not possible to clone an object merely by virtue of the |
44 * Therefore, it is not possible to clone an object merely by virtue of the |
45 * fact that it implements this interface. Even if the clone method is invoked |
45 * fact that it implements this interface. Even if the clone method is invoked |
46 * reflectively, there is no guarantee that it will succeed. |
46 * reflectively, there is no guarantee that it will succeed. |
47 * |
47 * |
48 * @author unascribed |
48 * @author unascribed |