What is this getClass?

getClass() is the method of Object class . This method returns the runtime class of this object. The class object which is returned is the object that is locked by static synchronized method of the represented class.

Sizin İçin Seçtik  What is the difference between getClass and instanceOf?

Leave a Reply

Your email address will not be published. Required fields are marked *