Java enums


Should we use to represent a constant String such as browser's user agent or simply use public static final String as before? Using public static final as enum has many problems, such as: Not typesafe - Since a type is just an int you can pass in any other int value where a particular type is required, or add two types together (which makes no sense).
Older News
S M T W T F S
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
Copyright© 2010 The Gaea Times