java.lang.Class.isAnonymousClass() java.lang.Class.getSuperclass() java.lang.Class.isArray() java.lang.Class.isAnonymousClass() package com.codingdict; import java.lang.*; public class ClassDemo { public static void main(String[] args) { ClassDemo c = new ClassDemo(); Class cls = c.getClass(); // returns the name of the class String name = cls.getName(); System.out.println("Class Name = " + name); // returns true if this class is an anonymous class boolean retval = cls.isAnonymousClass(); System.out.println("Is this AnonymousClass? " + retval); } } java.lang.Class.getSuperclass() java.lang.Class.isArray()