I want to get proper understanding why below compilation error? As per my understanding If i use Test.xyz() then compiler look for only static method not for instance method
You have no return type here:
public static xyz(Integer i) {
}
This should be void, if there is nothing to return:
public static void xyz(Integer i) {
}
And also, you need to make the first method static too:
public static void xyz(int i) {
}
So it can be called out of the static main method. It is not possible to call non-static methods out of static methods. More detailed explanation on this: calling non-static method in static method in Java