Javatpoint Logo
Javatpoint Logo

Java Method getGenericParameterTypes() Method

The 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.

Syntax

Parameter

No parameter is passed.

Returns

an array of Types that represent the formal parameter types of the underlying executable

Throw

GenericSignatureFormatError

TypeNotPresentException

MalformedParameterizedTypeException.

Example 1

Test it Now

Output:

class java.lang.String

Example 2

Test it Now

Output:

class java.lang.String
int
Next TopicJava Method Class





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA