Java Method getGenericParameterTypes() MethodThe getGenericParameterTypes() method of Constructor class returns an array of Type objects representing the formal parameter types, in the order in which they are declared. If the underlying executable takes no parameters an array of length 0 is returned. SyntaxParameterNo parameter is passed. Returnsan array of Types that represent the formal parameter types of the underlying executable ThrowGenericSignatureFormatError TypeNotPresentException MalformedParameterizedTypeException. Example 1Test it NowOutput: class java.lang.String Example 2Test it NowOutput: class java.lang.String int
Next TopicJava Method Class
|