Help the world stop coronavirus! Stay home!

Prev Next

Java / Modifiers

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

Posted on Apr 1, 2016 by Senthil Kumar.

No. It can be placed in any order except that the return type of any method must before the method name. In this case, void has to specified before the main method name.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Methods

Comments & Discussions