In Java why we write public static void main(String args[])
why not main()?
Answer Posted / shiva
In entire java program main() executes only once, so that
so that it is static.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How objects of a class are created if no constructor is defined in the class?
Is map ordered in java?
What is java object name?
What is the size of int?
What are wrapper classes in java?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Explain 5 features introduced in jdk 1.7?
why are there separate wait and sleep methods? : Java thread
Name container classes in java programming?
Why java is a platform independent? Explain
Is class forname reflection?
What is nested loop? What is dangling else condition in it?
Differentiate between stringbuffer and string?
Why synchronization is important in java?
What does the three dot emoji mean?