Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

User_OREVCOct 17 2021

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.

Comments

Post Details

Added on Oct 17 2021
0 comments
150 views