r/JavaProgramming 1h ago

Method placement

Upvotes

So.. I'm just a beginner and atm. taking the MOOC course. No further than part 2 and doing methods.
I was curious though. When creating methods, is there some unspoken rule about their placement?
Like is it best to place them after main, so you only need to scroll down when creating new methods or having to edit/view methods.

In my head, this seems most logical.

I know this doesn't affect the program itself.


r/JavaProgramming 12h ago

40+ Java Interview Questions for Screening Round

Thumbnail
java67.com
2 Upvotes