One of the rules of method overloading is different number of arguments in the overloaded method definitions
Consider
Consider
public void printInt(int a) public void printInt(int a, int b) public void printInt(int a, int b, int c) public void printInt(int...x) /*Ah! tricky one*/All above methods are overloaded. But what will be the output for this code?
printInt(1,2,3);