In Java why we write public static void main(String args[])
why not main()?
Answer Posted / ravi
static because once the class is loaded the main() will be
invoked first.
void because main()is not returning any value.
| Is This Answer Correct ? | 228 Yes | 99 No |
Post New Answer View All Answers
How thread scheduler schedule the task?
Explain the hierarchy of java exception classes?
Are variables stored in ram?
Explain how to convert any java object into byte array.
What do you mean by light weight and heavy weight components?
What is role of void keyword in declaring functions?
What do you understand by copy constructor in java?
Define the term string pool?
Can I declare a class as private?
Which is faster set or list in java?
Is main a function?
Explain importance of finally block in java?
How do you do descending order in java?
What is append in java?
What is the difference between variable declaration and variable initialization?