In Java why we write public static void main(String args[])
why not main()?
Answer Posted / praveen
PUBLIC: in this we should access the function inside d class
or outside d class
STATIC:if any method is invoking obj is must.but using
static no obj is necessary.
VOID: void means nothig.in main method we should not declare
any value. so void is return type.
STRING[]ARGS:in java every input consider as a string
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can You Have Virtual Functions In Java?
What is square root in java?
In java, how we can disallow serialization of variables?
In java how do we copy objects?
What is the java reflection api? Why it’s so important to have?
What is downcasting?
Difference between operator overloading and function overloading
What is lastindexof in java?
What is classname class in java?
Define packages in java?
What is the purpose of the strictfp keyword?
What is java ceil?
Describe different states of a thread.
What is final access modifier in java?
Can you run java program without main method?