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 purpose of static methods and variables?
what is predefined function in java?
Differentiate between static and non-static methods in java.
Which class contains a method: cloneable or object?
What is an exception? difference between Checked and Unchecked exception in Java
Why set do not allow duplicates in java?
Is string a datatype?
Why is it called a string?
What is array in java?
Give me example of derived data types.
What is the basic concepts of OOPS?
What is the synonym of framework?
What is the largest long allowed by java?
What is the use of isempty in java?
What is jdbc api?