getClass() method returns the runtime class of an object . That Class object is the object that is locked by static synchronized methods of the represented class.
What is the use of get class?
getClass() method returns the runtime class of an object . That Class object is the object that is locked by static synchronized methods of the represented class.