Home > DeveloperSection > Forums > main() method in java.
Awadhendra Tiwari

Total Post:126

Points:882
Posted on    July-26-2011 4:43 AM

 Java Java 
Ratings:


 1 Reply(s)
 1607  View(s)
Rate this:
Hi.........
I have a small question in java. My question is simple, why main method is static in java. I had google it and got some results but those results are not up to mark or I am not satisfy with that answer.
And also I want to ask that what is difference between these two main method declaration

  1. public static void main(String [] args)
  2. public static void main(String args[])
Thanks.


Awadhendra Tiwari

Total Post:126

Points:882
Posted on    July-30-2011 4:49 AM

Hi, finally I got solution for this question.

These two types of declaration of array havent no difference. Actually java support both type of array declaration.

Thanks.


Don't want to miss updates? Please click the below button!

Follow MindStick