K&B SCJP 5.0 book -> Chapter 3: Assignments -> Overloading(section).
At the end of this "Overloading" section, there are few points of which two of them mentioned below seem to be confusing to me.
- Used individually, boxing and var-args are compatible with overloading.
- You can combine var-args with either widening or boxing.
Do not these two statements contradict each other? As according to me the first one means that boxing and var-args can not be combined in method overloading which directly opposes the last one.
Help needed.
At the end of this "Overloading" section, there are few points of which two of them mentioned below seem to be confusing to me.
- Used individually, boxing and var-args are compatible with overloading.
- You can combine var-args with either widening or boxing.
Do not these two statements contradict each other? As according to me the first one means that boxing and var-args can not be combined in method overloading which directly opposes the last one.
Help needed.