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
Program to Find the second largest element in an array.
When arithmeticexception is thrown?
What is tree node in java?
What lambda means?
What is java algorithm?
What is a conditional equation?
What is hashtable and explain features of hashtable?
What do you mean by an object in java?
What is the use of protected in java?
Where is java located?
What is the main purpose of serialization in java?
What is the difference between stringbuffer and stringbuilder class?
What is the java idl system?
Differences between C and Java?
How do you override a variable in java?