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 is the driver class?
What is the purpose of finalization in java programming?
Which one will take more memory: an int or integer?
Name component subclasses that support painting in java programming?
How many bits is a float?
Why static functions are used?
If I only change the return type, does the method become overloaded?
What is Java Annotations?
What is empty list in java?
Explain java heap space and garbage collection?
What is comparable and comparator interface? List their differences
List down the methods and interfaces of collection class in java.
What is serial version uid and its importance in java?
Does every java program need a main?
What do you mean by local variable and instance variable?