0
Generic method confusion
Why is generic type mentioned twice here using dimond operator on a method? Thanks static <T> InterfaceName <T> var(){}
1 Respuesta
+ 1
1. Indicate the language!
2. Are you sure that is correct? It doesn't look right at first glance to me.
3. One is for the generic return type (returns a value of the generic) another for the generic method signature itself.