Possible Duplicate:
enum.values() - is an order of returned enums deterministic
I have an enum something like below :-
enum Direction {
EAST,
WEST,
NORTH,
SOUTH
}
If i say values()
on the Direction enum, then will the order of the value remain same all the time. I mean will the order of values will be in the below foramt always:
EAST,WEST,NORTH,SOUTH
or can the order change at any point of time.