Source:
ExamLab from Deveka (practise exam) - Exercise 9
Output: aebcd
I was surprised that the call with the int array goes to the var-arg method and not the object method. I thought var-arg is always used last???
But not here? I mean, an array is an object and that int array could be widened to an object. And because widening is before var-arg ...
Where is my error? (same for the Integer array)
Thanks
cheers
Bob