Methods MethodDescriptiongetDeclaringClass()It returns the class or interface represented by this Class object (which is a member of another class) and the Class object representing the class in which it was declared.getEnclosingClass()It returns the immediately enclosing class of the underlying class.Java Class class – Javatpoint www.javatpoint.com › java-class
Read moreWhat are class methods used for?
Class methods are for when you need to have methods that aren’t specific to any particular instance, but still involve the class in some way .
Read more