Pregunta de entrevista de INRY (IntegRhythm Inc)

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

Respuestas de entrevistas

Anónimo

18 feb 2018

No.

Anónimo

3 jun 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.

Anónimo

3 jun 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.