3 ms·
The compiler would tell you that it can't disambiguate that and fail. It's a type error.
by tazjin 10y ago
The compiler would tell you that it can't disambiguate that and fail. It's a type error.
- bradleyjg 10y agoI guess that makes sense. It is similar to: void putSomething(Integer i) void putSomething(String i) and obj.putSomething(null) which I think throws a compiler error in java.