I was recently asked in an exam if public static void main(String arg[]) format of main method was fixed?
Can we change it?
Can we use main>
I cannot answer for the arguments of the method but it must be public because the jvm must be able to access the function and it must be static because the jvm does not know how to create an instance of your class.
This post provides a good detailed answer about the reasoning for static: Why is the Java main method static?
This post provides a good answer for why main is void: Why is main() in java void?