forum

home / developersection / forums / main() method in java.

main() method in java.

Anonymous User 2881 26-Jul-2011
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.

Updated on 30-Jul-2011

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By