Difference between final static and static final

前端 未结 7 1932
眼角桃花
眼角桃花 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:12

    private static final String API_RTN_ERROR= "1";
    private final static String API_RTN_ERROR= "1";
    static private final String API_RTN_ERROR= "1";
    static final private String API_RTN_ERROR= "1";
    final static private String API_RTN_ERROR= "1";
    final private static String API_RTN_ERROR= "1";
    

    even all above are same the position of first three is intercangeable.

提交回复
热议问题