Java Class getGenericInterfaces() MethodLast Updated : 17 Mar 2025 The getField() method of java Class class returns the Types as an array of the type Type representing the interfaces directly implemented by the class or interface. SyntaxParameterNA ReturnsAn array. ThrowsGenericSignatureFormatError, TypeNotPresentException MalformedParameterizedTypeException Example 1Output: No interfaces impleamented... Example 2Output: [Ljava.lang.reflect.Type;@7852e922 type is ParameterizedType printing each one of ActualTypeArguments: ---- type is Class class name: String type is Class class name: BigInteger ---- Next TopicJava Class |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India