How to overload the main method? I know that main() can be overloaded but don't know how to invoke overload version.
public class A{
public static void main(String args[]){
System.out.println("Hi");
}
public static void main(int a){
System.out.println("Hi i m int");
}
}
main() is overload in the above code but how to invoke the overloaded version?
Question asked by visitor ashok agnihotri