Java coding convention about static method

前端 未结 7 645
情深已故
情深已故 2021-02-05 16:24

It is a very simple question, but I think it is a little bit controversial.

When I code Java classes I use the following order.

class Foo {

    // stati         


        
7条回答
  •  长情又很酷
    2021-02-05 17:21

    I put static initializers and methods before constructors, so I guess I'm following your citation.

    Why the discomfort? It seems like a small thing.

提交回复
热议问题