+ 1
what is the meaning of this code
please what does this code mean in detail: static void main(string [] args)
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
+ 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
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.
- 1
Hey guys....I just finished my training in Java. I need a job quick. How may you be of help please.