Forum Stats

  • 3,839,390 Users
  • 2,262,486 Discussions
  • 7,900,957 Comments

Discussions

Till java 6 we can execute program without a main method ie by means of static block

User_OREVC
User_OREVC Member Posts: 1 Green Ribbon

I am curious to know why it is mandatory after java6 to have main method in your program even if we are executing static blocks.


Please point me to correct answer if these question has already been answered.