Rafael Angarita wrote:Compiler error: The method method(int i,Integer k) is ambiguous for the type Boxing()
The problem here is that more that one method match the invocation.
Anyway, I'm waiting for an explanation.
Does this kind of question appear in the real exam? (I'm confused here)
All three methods require boxing/unboxing, so if you have any 2 of those methods declared you will get a compiler error on the method invocation.