|
Java™ by example!
|
|
|
How do I get the returntype of a method through reflection?
Get a Method instance from the Class and invoke the method getReturnType. Main.java:
output for java Main Main main
output for java Main java.util.Vector size
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|