Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class Main<T> {

    <E extends RuntimeException> T genericThrow(@Deprecated T t) throws E {
        return t;
    }

    public static void main(String... args) {
        try {
            Class<?> c = Class.forName("Main");
            Method[] allMethods = c.getDeclaredMethods();
            for (Method m : allMethods) {
                Annotation[][] types = m.getParameterAnnotations();

            }
        } catch (ClassNotFoundException x) {
            x.printStackTrace();
        }
    }
}