Are there any Java method ordering conventions? [closed]

Some conventions list all the public methods first, and then all the private ones – that means it’s easy to separate the API from the implementation, even when there’s no interface involved, if you see what I mean.

Another idea is to group related methods together – this makes it easier to spot seams where you could split your existing large class into several smaller, more targeted ones.

Leave a Comment