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
This is how I did the static class.
public class test { public static void main(String arg[]) { xyz(10); } public static void xyz(int i) { } }