permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why Enum introduced in 5 called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why Enum introduced in 5 called "Typesafe Enum" ?" Watch "why Enum introduced in 5 called "Typesafe Enum" ?" New topic
Author

why Enum introduced in 5 called "Typesafe Enum" ?

Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 254

Any thoughts why Enum introduced in 5 called "Typesafe Enum" ?
what type of type safty issue does it resolve?


Regards
Salil Verma
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
Read Beware of Java typesafe enumerations and More on typesafe enums to understand the problem Enum solves.


Ping & DNS - my free Android networking tools app
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 787

@ Ulf
Both links are very helpful


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why Enum introduced in 5 called "Typesafe Enum" ?