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
What do you understand by Header linked List?
What does java stand for?
What is java string pool?
Explain wait(), notify() and notifyall() methods of object class ?
What are the two parts of a conditional statement?
What is the applet security manager, and what does it provide?
Explain about anonymous inner classes in java?
Is class is a data type?
Why do we use bufferedreader?
Can you explain the usages of class.forname()?
Can we change the scope of the overridden method in the subclass?
What is string in java with example?
How java is similar to c?
What does indexof mean?
Explain what are final variable in java?