This discussion is archived
5 Replies Latest reply: Nov 24, 2010 2:02 PM by EJP RSS

Generics valid constructors

616286 Newbie
Currently Being Moderated
Hi
A problem about Generics faces and confuses me :-
which of the following constructors is not valid constructor for the class declared as class Generics<T> {}:-



1- public Generics(){}
2-public Generics<T> {}
3- public <T> Generics(T t){}
4_ public <T> Generics(){}

can someone help and explain please.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points