Which of these is an correct way of defining generic method?
(a) <T1, T2, …, Tn> name(T1, T2, …, Tn) { /* … */ }
(b) public <T1, T2, …, Tn> name<T1, T2, …, Tn> { /* … */ }
(c) class <T1, T2, …, Tn> name[T1, T2, …, Tn] { /* … */ }
(d) <T1, T2, …, Tn> name{T1, T2, …, Tn} { /* … */ }
I have been asked this question in an internship interview.
The question is from Generic Methods topic in portion Generics of Java