Possible Duplicate:
Create instance of generic type in Java?
In C# I can use the class Activator or default(T) but how can i do that in Java? I have a custom class like
public class Foo<T extends FooBase> ...
Now i want to create a instance of T(it has a public default ctor). I am new in java and I have no idea how I could create a instance of that "type". I've tried something like this:
T.class.newInstance();
but T has no .class? So what can I do?