Google News
logo
JSP - Interview Questions
Explain Object cloning.
Object cloning is used to create an exact copy of the existing object. The clone() method of the Object class is used to create the clone of an existing object. As a prerequisite, The class whose object the user tries to clone is expected to implement the java.lang.Cloneable interface.
Advertisement