Java Method getParameterTypes() MethodThe getParameterTypes () method of Method class returns an array of type class objects representing the formal parameter types, in the order in which they are declared. If the underlying executable takes no parameter, then an array of length 0 is returned. SyntaxParameterNA ReturnsThe parameter types for the executable this object represents ThrowNA Example 1Test it NowOutput: int class java.lang.String class [Ljava.lang.String; Example 2Test it NowOutput: Int //output representing the type of parameters int double class java.lang.String
Next TopicJava Method Class
|