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
They are the same. The order of modifiers is not significant. And note that the same rule applies in all contexts where modifiers are used in Java.
However, most Java style guides recommend/mandate the same specific order for the modifiers. In this case, it is public static final.
public static final