adspace
Explain the reason for each keyword of public static void main(string args[])?
Answer Posted / Rakesh Kumar Maurya
If the main method is declared as private, it can only be called from within the same class. This defeats the purpose of having a starting point for a Java application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we extract main method from another class?
What is the java api?
what is reflection api? How are they implemented?
Are jvm’s platform independent?
What do you understand by casting in java language? What are the types of casting?
What if I write static public void instead of public static void?
How does java handle integer overflows and underflows?
What is the first argument of the string array in main method?
What is the resourcebundle class?
What is the locale class?