ProAnswers.org

Does the order of public and static declaration matter in main() method?

No. It doesn’t matter but void should always come before main().