package com.logicbig.example.method;
import java.lang.reflect.Method;
import java.math.BigDecimal;
public class GetReturnTypeExample {
private static BigDecimal getNumber() {return null;}
public static void main(String... args) throws NoSuchMethodException {
Method m = GetReturnTypeExample.class.getDeclaredMethod("getNumber");
Class<?> returnType = m.getReturnType();
System.out.println(returnType.getTypeName());
}
}