getClass().getSuperclass()
But don’t use this. It is certainly a sign of bad design.
More Related Contents:
- Creating new Android (Java ) file in Existing Android package [closed]
- The difference between Classes, Objects, and Instances
- Java: how do I get a class literal from a generic type?
- What is this: [Ljava.lang.Object;?
- How to load Classes at runtime from a folder or JAR?
- Does python have an equivalent to Java Class.forName()?
- Creating an array of objects in Java
- java compiled classes contain dollar signs
- Why can’t we have static method in a (non-static) inner class (pre-Java 16)?
- How to use Class in Java?
- What does .class mean in Java?
- Scala equivalent of Java java.lang.Class Object
- How to get names of classes inside a jar file?
- Method to dynamically load java class files
- Advantage of set and get methods vs public variable [duplicate]
- Error inflating when extending a class
- How to get the Array Class for a given Class in Java?
- Android Unable to instantiate activity: Didn’t find class on path
- Instantiate private inner class with java reflection
- Loop over all fields in a Java class
- Could not find or load main class with a Jar File
- Inheritance in java and Superclasses(Object, Class)
- Java – get the current class name?
- Java Class.forName() from distant directory
- Why can’t a Java class be declared as static?
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)
- Calling static method on a class?
- Class must either be declared abstract or implement abstract method error
- Java: How to limit access of a method to a specific class?
- Multiple .class files generated for a class?