GeeCON Prague 2014*
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


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: 255

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: 42061
    
  64
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: 791

@ 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
 
Don't get me started about those stupid light bulbs.
 
subject: why Enum introduced in 5 called "Typesafe Enum" ?