java how to return name of the class code example Example: getting class name in java a.getClass().getName();