As the title says, I am wondering what the difference between those functions is.
Why should/shouldn't I provide the <T>
in foo2
public class Base<T> {
public T[] foo(int i){
/*Do something*/
}
public <T> T[] foo2(int i){
/*Do something*/
}
}