Is this possible in Java?: Public void doSomething(List<String> bar){...} Public void doSomething(List<Integer> bar){...}
Sigiloso
Type erasure feature changes both functions to (List bar) and the compiler sees it as a single method declared twice. Thats why it is not allowed.