If class B and class C extend class A and I have an object of type B or C, how can I determine of which type
B
C
A
Use Object.getClass(). It returns the runtime type of the object.