JAVA – codewindow.in
Related Topics JAVA Programming Question 8 How does the clone() method work in java.lang.Object class? Answer The clone() method in the java.lang.Object class is used to create a new object that is a copy of an existing object. The general syntax for using clone() is: Object obj1 = new Object(); Object obj2 = obj1.clone(); To […]