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
Is arraylist ordered?
What is hash table in java?
How many bits is a char?
What are the types of collections in java?
Explain about static nested classes in java?
What is the functionability stubs and skeletons?
How can a gui component handle its own events in java programming?
what is nested class in java?
What do you understand by the term singleton?
Why does java not allow multiple public classes in a java file ?
What is boolean flag in java?
How do you reverse a list?
What are methods?
What is called module?
What is the range of the short type?