java generics

Create a class object out of a generic type

Write a class which looks like the following <code> public class Test<T> { public Test() { Class<T> clazz = ? } } </code> Call this class with some self generated class which contains Annotations and try to read out the Annotations of this class from the clazz variable which has to be defined.
Subscribe to java generics