class NewClass{
public static void main(String a){
System.out.print("Hello");
}
}
When I'm trying to execute above code, then it shows an error, main method not found. But when I changed public static void main(String a)
to public static void main(String... a)
or public static void main(String a[])
. Then, it works..!!
So, My question is how many different ways we can write legal main method signature and what this signature public static void main(String... a)
means ?