Forum Stats

  • 3,770,075 Users
  • 2,253,061 Discussions
  • 7,875,300 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.