Course contentsShow
Java
Lesson 2323 of 2,87045. Reflection APIPro lesson

Using getClass() on Object Instances

Call getClass() on any object to retrieve its runtime Class, revealing the actual type of polymorphic references.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.