class GenericShort<TUVW,ABCD> {
}
- class Generic<TUVW,ABCD,KLM,NOP> {
+ class Generic<TUVW,ABCD,KLM,NOP> extends GenericShort<TUVW,ABCD> {
}
public static void main(String[] args) {
- Method[] methods = SampleClass.class.getMethods();
+ /*Method[] methods = SampleClass.class.getMethods();
// Method[] methods = Class.class.getMethods();
Method method = null;
for(Method meth : methods) {
for (int i = 0; i < parameters.length; i++) {
System.out.println(parameters[i]);
}
- System.out.println();
+ System.out.println();*/
+ Type superCls = Generic.class.getGenericSuperclass();
+ //Type superCls = String.class.getGenericSuperclass();
+ System.out.println(superCls);
/*Class[] parameterTypes = methods[0].getParameterTypes();
for(Class parameterType: parameterTypes){
System.out.println(parameterType.getName());