Clone Object using Java Program

Here I have shared, Simple program to write How to Clone Object using Java Program. The example program was tested and output is shared in the same post.

Student.java

The Student class which is implementing the java.lang.Cloneable interface. so that we can able to clone the student object.

StudentCloneTest.java

Output

—————–
Studend ID : 101 Student Name : John
Reference Address : [email protected]
Studend ID : 101 Student Name : John
Reference Address : [email protected]