Pergunta de entrevista da empresa INRY (IntegRhythm Inc)

can we write "public static void main()" as " void public static main()" ?

Respostas da entrevista

Sigiloso

18 de fev. de 2018

No.

Sigiloso

3 de jun. de 2019

No. Because public - so that any class can access it static - so that the JVM can access it without the need to instantiate the class object void - because it does not return anything main - this is just the method name. public - so that any class can access it static - so that the JVM can access it without the need to instantiate the class object void - because it does not return anything main - this is just the method name.

Sigiloso

3 de jun. de 2019

No public - so that any class can access it static - so that the JVM can access it without the need to instantiate the class object void - because it does not return anything main - this is just the method name. public - so that any class can access it static - so that the JVM can access it without the need to instantiate the class object void - because it does not return anything main - this is just the method name.