Instantiating generics type in java
Posted
by Mohd Farid
on Stack Overflow
See other posts from Stack Overflow
or by Mohd Farid
Published on 2010-03-12T16:15:05Z
Indexed on
2010/03/12
16:17 UTC
Read the original article
Hit count: 793
I would like to create an object of Generics Type in java. Please suggest how can I achieve the same.
suppose I have the class declaration as:
public class Abc<T>
{
public static void main(String[] args)
{
// I want to create an instance of T
}
}
© Stack Overflow or respective owner