employer cover photo
employer logo
employer logo

INRY (IntegRhythm Inc)

Est-ce votre entreprise ?

Question d’entretien chez INRY (IntegRhythm Inc)

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

Réponses aux questions d'entretien

Utilisateur anonyme

18 févr. 2018

No.

Utilisateur anonyme

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

Utilisateur anonyme

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