Explain the reason for each keyword of public static void main(string args[])?



Explain the reason for each keyword of public static void main(string args[])?..

Answer / 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

More Java Related AllOther Interview Questions

What is jpa implementation?

1 Answers  


What is cdi in java?

1 Answers  


Why Java is a platform independent language?Explain byte code and JVM

8 Answers   HCL,


i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file

1 Answers  


How common are security breaches? : java security

1 Answers  


What is meant by pass by reference and pass by value in java?

1 Answers  


What is the means of java?

1 Answers  


What is a service layer in java?

1 Answers  


What is difference between loosely coupled and tightly coupled in java?

1 Answers  


What is log4j in java?

1 Answers  


What is savepoint in java?

1 Answers  


How do I open the java console in windows 10?

1 Answers  


Categories