In Java why we write public static void main(String args[])
why not main()?
Answer Posted / ratna
As said by Prabhakant Prabhakar Rasal
if There are two main reasons to write string args[]
1. TO identify the program
2. To get command_line arguments
How does the string args[] helps in identifying the program ????
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of java inner classes?
What does nextint () do in java?
How are destructors defined in java?
Can you make a constructor final in Java?
What is callablestatement? How you can call stored procedure to pass in parameter?
Are maps ordered java?
What is the difference between equals() and == in java?
Is finalize() similar to a destructor?
Which is better 64 bit or 32 bit?
What is the difference between inner class and nested class?
Can a abstract class be declared final?
What is entry set in java?
What environment variables are required to be set on a machine in order to run Java programs?
What is the maximum size of list in java?
What are the advantages of java over cpp?