Enum « Class Definition « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Class Definition » Enum 
1. Beware of Java typesafe enumerations
Author:Vladimir Roubtsov
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip122.html?
Summary: The so-called typesafe enum construct has gained popularity since its increased coverage in several publications and admittance into the Sun JDK implementation. But be warned: this tip shows that the construct isn't as safe as you might believe. (1,800 words; January 4, 2002)


2. More on typesafe enums
Author:Philip Bishop
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip133.html?
Summary: Published in early 1997, "Java Tip 27: Typesafe Constants in C++ and Java" discussed how to create and use typesafe constants (enums) in both Java and C++. Since then, various JavaWorld articles have covered how to enhance this idiom's canonical form and probably more importantly, documented the problems related to serialization. In this Java Tip, Phil Bishop presents a simple abstract class that solves the main serialization issues for you. (650 words; January 24, 2003)


w_w___w_.___j_a_v___a__2s.com | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.