I am new to java.I was going through a tutorial on java generics.
Java Generics tutorial There is a section about declaring generic methods and constructors.
Methods and constructors can be generic if they declare one/more type variables.
public static <T>T getFirst (List<T> list)
This method accepts a reference to List and will return an object of type T.
why is there a T after static? Is this a printing mistake.?
What does that mean?
I am a beginner in java an new to the concepts of generics.