How is the value of an enum calculated? Does the compiler give it a static value? What kind of value is it?
The reason I ask is because I was wondering what the consequences of using enum values over a tcp (or any inter-process) connection would be. (By enum value I mean Enum.VALUE) Obviously you wouldn't be able to construct packets compatible with your program from another language unless you knew the pre-determined values of each enum. So is it possible to figure out the "real" values of each? And will two Java programs using the same enum "class" file understand each other?
This is purely theoretical, please no scoldings. Pointers are good, though.