I am inside a subclass and when I am trying to find the name of super class, I tried super.getClass() , but it is returning me the name of the subclass only. Why?
getClass().getSuperclass() should do.
getClass().getSuperclass()
2.1m questions
2.1m answers
60 comments
57.0k users