Difference between final static and static final

前端 未结 7 1958
眼角桃花
眼角桃花 2020-12-04 06:39

I found a code where it declared code like

private final static String API_RTN_SUCCESS = \"0\";
private final static String API_RTN_ERROR = \"1\";

public st         


        
7条回答
  •  忘掉有多难
    2020-12-04 07:08

    it's the same, of course. it only depends on your habits and preference :-). I use public static final order for members and methods too

提交回复
热议问题