wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 253

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: 41137
    
  45
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
 
Consider Paul's rocket mass heater.
 
subject: why Enum introduced in 5 called "Typesafe Enum" ?
 
Similar Threads
Enum , providing getInstance() method
Significant difference between if:loop and loop:if?
BJO - The new Java 5 enum vs. the Type Safe Enum pattern
Why does the month start at 0, and not at 1?
Enumerations