Yingliang Du

1 posts · 648 views

Sort by Latest Post, Most Popular

View by Condensed, Full

  • September 24, 2009
  • 12:17 PM
  • 648 views

Use enumerated constants in Java

by Yingliang Du in Yingliang Du's Blog

In the article “Create enumerated constants in Java” , Eric point out static final constants like this:
static final int YELLOW = 0;
static final int GREEN = 1;
static final int BLUE = 2;
had the following drawbacks:

The major drawback is the lack of type safety. Any [...]... Read more »

Eric Armstrong. (1997) Create enumerated constants in Java. http://www.javaworld.com/jw-07-1997/jw-07-enumerated.html. info:/

join us!

Do you write about peer-reviewed research in your blog? Use ResearchBlogging.org to make it easy for your readers — and others from around the world — to find your serious posts about academic research.

If you don't have a blog, you can still use our site to learn about fascinating developments in cutting-edge research from around the world.

Register Now

Research Blogging is powered by SMG Technology.

To learn more, visit seedmediagroup.com.