Interviews8 answers
8 Answers
it will execute, order of modifier is programmer's wish
geetha nallavadlaPosted Apr 30, 2019, 3:37 AM EDT
No problem execution will be done perfectly....
But coding always have procedure so, in that case we need provide appropriate declaration of the program and then only we able understand easily. also other developer also understand easily.
Nagaraj RajagopalPosted Mar 10, 2018, 10:03 AM EST
No difference
Mukesh KumarPosted Sep 2, 2017, 3:29 AM EDT
It does not matter. It will work.
Bhavya DalwadiPosted Aug 12, 2017, 8:35 PM EDT
Obviously it will execute correctly but public static is the standard way, if you are going for interview then you must have to be clear that what are these PUBLIC STATIC VOID and what the use of these?
public : it is a access specifier that means it will be accessed by publically.
static : it is also access modifier that means is that you can access this method without having an instance of the class.
void : it is a return type i.e it does not return any value.
main : it is a main method
Java only starts running a program with the specific public static void main(String args[])
Saurabh SrivastavaPosted Jul 18, 2017, 10:08 PM EDT
no problem
Karthikmani SPosted May 28, 2017, 10:34 PM EDT
Nothing will happen !
Kunal BPosted May 3, 2017, 2:11 AM EDT
It was nothing the program compiles and runs properly.
RajPosted Sep 19, 2016, 4:08 AM EDT


