最佳答案
I have a java.lang.reflect.Method
object and I would like to know if it's return type is void
.
I've checked the Javadocs and there is a getReturnType()
method that returns a Class object. The thing is that they don't say what would be the return type if the method is void.
Thanks!