In your example, the order does not matter, but the following is also true:
static int volatile i;
which shows that order generally matters, since you cannot put static after an int . static corresponds to a variable, volatile and const corresponds to a type.
source share