Method overload resolution in java

后端 未结 5 1117
感情败类
感情败类 2020-11-27 05:45

Here is what I know about overload resolution in java:


The process of compiler trying to resolve the method call from given overloaded method

5条回答
  •  臣服心动
    2020-11-27 06:22

    widening beats boxing, boxing beats var-args. In your example, the widening cannot happen, so the boxing it's applied and Integer is unboxed. Nothing unordinary.

提交回复
热议问题