We need to understand three features while invoking overloaded methods. They are
a) Widening: This feature always chooses the maximum range of bytes. For example, Long type holds maximum amount of bytes than Integer.
b) Autoboxing: This feature converts the primitive to wrapper and vice versa.
c) Var-args: Using this feature, we can pass multiple arguments to a method by passing single argument with three dots as shown below:
public static String invokeFormat(String strPattern,Object... myArgs);
As per the above order, Widening overcomes Autoboxing and Var-Args and Autoboxing overcomes Var-args.