employer cover photo
employer logo
employer logo

INRY (IntegRhythm Inc)

Is this your company?

INRY (IntegRhythm Inc) interview question

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

Interview Answers

Anonymous

18 Feb 2018

No.

Anonymous

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.

Anonymous

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.