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
What is the difference between them or are they same?
If you are talking about changing order of static and final then yes they are same.
does it differ for private or public?
No, you can use any order in private and public. Just difference is private variables will not be accessible outside of class directly.