+ 3
Does "public static void main" must be in this order ?
Can I rearrange their position ? Exp , "static void public main" ?
3 Réponses
+ 3
If you have doubts, try to code it yourself and see what happens. To answer your question though, yes, they must follow that order.
+ 2
no you cant.firstly you have to write access type,then you have to write static or not(nothing write) then return type and function name.
+ 1
Signature format for methods is predefined
You cant alter them