In Java why we write public static void main(String args[])
why not main()?
Answer Posted / sreenu karampudi
public static void main(String args[])
When the class get loaded, it will execute the static main
() method. void as it does not return anything.
| Is This Answer Correct ? | 15 Yes | 49 No |
Post New Answer View All Answers
What is variable and its types?
Is it necessary for the port addresses to be unique? Explain with reason.
Why do we need wrapper class?
Is main an identifier?
what is function overloading in java?
Why does my function print none?
Is java hard to learn?
Which programming language is most secure?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Name some classes present in java.util.regex package.
When do you call copy constructor?
java program with complete 4 oops concepts implemented example
How is garbage collection controlled?
Is java pass by value or pass by reference?
What is super constructor?