+ 3
This java main function is correct or not
public class Program { static public void main(String... args) { System.out.println("hello"); } }
4 Respuestas
+ 14
It is correct and should compile as far as I know. I'm too interested though whether there are significant differences between the two or it's just syntactic sugar.
+ 9
I prefer 'public static void main (String [] args)' but this works.