Hi All!
I have a simple question about sequencing declarations in a
Java Class. According to the information On Sierra&Bates book, the sequence should be:
class commentspackage declarationimport statementsclass declarationstatic variablesinstance variablesconstructorsmethods
What happens if I use a static factory method? Should it go before my private constructors?
What about static methods in general? Should I put them also before the constructors?
Thanks!