Which of these is an correct way of defining generic class?
(a) class name(T1, T2, …, Tn) { /* … */ }
(b) class name<T1, T2, …, Tn> { /* … */ }
(c) class name[T1, T2, …, Tn] { /* … */ }
(d) class name{T1, T2, …, Tn} { /* … */ }
This question was posed to me during an interview for a job.
Asked question is from Type Interface in section Interfaces & Packages of Java