Jumat, 27 Januari 2017

What are the methods of Object Class in Java Programming

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 used to write resource clean up code when the object is just to be garbage collected. Syntax of this method is as follows: void finalize() getClass() method This method is used to

The post What are the methods of Object Class in Java Programming appeared first on Coding Security.


What are the methods of Object Class in Java Programming
read more

Tidak ada komentar:

Posting Komentar