Java class getsimplename => http://sonsvorore.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MjQ6IkphdmEgY2xhc3MgZ2V0c2ltcGxlbmFtZSI7fQ== If this object represents a primitive type or void, the method returns an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers. If this object was loaded by the bootstrap class loader, the method delegates to. Throws: - If name is null Since: 1. Specified by: in interface Returns: annotations directly present on this element Since: 1. Parameters: cls - the Class object to be checked Returns: the boolean value indicating whether objects of the type cls can be assigned to objects of this class Throws: - if the specified Class parameter is null. If more than one such method is found in C, and one of these methods has a return type that is more specific than any of the others, that method is reflected; otherwise one of the methods is chosen arbitrarily. The parameterized type representing each superinterface is created if it had not been created before. Generally, you obtain a Class object by calling the getClass method defined by Object. The primitive Java types boolean, byte, char, short, int, long, float, and double , and the keyword void are also represented as Class objects. The truth value returned by this method is equivalent to: getAnnotation annotationClass! Unlike the other methods in this interface, this method ignores inherited annotations. There are nine predefined Class objects to represent the eight primitive types and void. Java provides a class with name Class in java. If C has no superclass, then a NoSuchFieldException is thrown. If more than one method with the same parameter types is declared in a class, and one of these methods has a return type that is more specific than any of the others, that method is returned; otherwise one of the methods is chosen arbitrarily. The specified class loader is used to load the class or interface. Java.lang.Class class in Java - If this Class object represents a primitive type or void, then the returned array has length 0. If you are doing, what I think you are doing, I would suggest use the instanceof operator. I see only getName option. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform. First, make sure java class getsimplename included java. You are most likely seeing options for Java 1. Upgrade your Javadocs, or just go ahead and use the code. It should work so long as you are compliling using the latest version of Java. If you don't have the most up to date version, go to Alain Does this environment have a full name. It's more than this solution. Get answers and train to solve all your tech problems - anytime, anywhere. Edge Out The Competition for your dream job with proven skills and certifications. Stand Out as the employee with proven skills. Move Your Career Forward with certification training in the latest technologies.