In Java the base class or parent class or super class for all other classes is the Object class. This Object class provides the common functionality for all other objects. Object Class Methods Following are different methods provided by the Object class: clone() method This method is used to create a new object which is same as the object being cloned. Syntax of this method is as follows: Object clone() equals() method This method is used to determine whether one object is same as the other object. Syntax of this method is as follows: boolean equals(Object obj) finalize() method This method is
The post What are the methods to modify object class in java appeared first on Coding Security.
What are the methods to modify object class in java
read more
Tidak ada komentar:
Posting Komentar