+ 1

what is the meaning of this code

please what does this code mean in detail: static void main(string [] args)

29th Jun 2016, 11:01 AM
Abdelrhman Mansour
Abdelrhman Mansour - avatar
4 Answers
+ 5
To add Static is used to run the method or class without creating an object. Since this is the first method which is going to execute so it should be static Void is used for returning nothing from that method Main is name of method String [] args are used to for tokens to run the code
30th Jun 2016, 5:39 AM
nitin sharma
nitin sharma - avatar
+ 2
I'll just add up that 'string [] args' is an array of strings named args. It's used if you call complied program from command shell or terminal (linux) or something like that in other supported OSs
1st Jul 2016, 9:02 PM
Azriel Gridfen
Azriel Gridfen - avatar
0
it is not a code, just the syntax you have to use to create a main method in a class : if you write this method (with precisely the same signature) the class can be run.
29th Jun 2016, 3:49 PM
samuel delepoulle
samuel delepoulle - avatar
- 1
Hey guys....I just finished my training in Java. I need a job quick. How may you be of help please.
25th Jul 2016, 11:06 PM
Adesina
Adesina - avatar