4 ms·
> Java generics are just syntactic sugar for Object, Only if you do not have a concrete boundary in the generic declaration, T extends Foo can result in a func
by josefx 7y ago
> Java generics are just syntactic sugar for Object,
Only if you do not have a concrete boundary in the generic declaration, T extends Foo can result in a function definition that takes a Foo instead of an Object.
> Java overloading is simple since all functions are in the same file (so doesn't change overload behavior depending on which files are imported)
import static java.lang.Math.*; for programmers too lazy to write Math.sin instead of sin.