+ 3
Can we change main functions syntax??
every language has got some fixed syntax of its main method . can we make any changes in that function? Is it defined to the compiler which will cause an error? for eg: can the int main() be altered to void main or any other type or public static void main(String ags[]) can we change it to int main will any changes in main functions syntax cause any compiler error
12 Respuestas
+ 3
I have not tried but may be if you changes the configuration of the compiler.
+ 3
Sorry got it!
+ 2
~ swim ~ can u be more detailed on ur last point
+ 2
Got it somehow😁
+ 2
Well it's still no satisfied wether int can be used in java main function without altering compiler's code
+ 2
~ swim ~ what do you do as profession
+ 1
Abhinav Bhardwaj it's quite curious as the basic concept is correct wether use void or int . looking fore some more answers
+ 1
static final public synchronized strictfp void main( String ... whatEver) {}
// this is valid