what is purpose of writting public static void main(Strind
arg[]) in java..?
Answer Posted / sahithi
Main method is entry point of our program.It is the method
executed when we run java program.
The method is "public" becozit should be accesible to jvm
to begin execution of program.
It is "static" becoz it should be available for execution
without an object instance..
String args[] are used to signify that user may pass
parameters to java prgm in commandline
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
Why we cannot override static method?
How are variables stored?
What are the rules for naming an array?
What is the generic class?
Is null function in java?
What is an array in java?
Explain the reason behind ending a program with a system.exit(0)?
What is unicode in java?
Tell me about different OOPS concepts.
what is singleton class in java?
Is java a compiler?
Who developed java?
What are the limitations of procedural programming approach?
How do you add an element to a hashset in java?
Enlist diffrent types of inheritance supported by java?