News

Although it is part of the java.util.concurrent package, the TimeUnit enum is useful in many contexts outside of concurrency .
How it’s supposed to work The typesafe Java enum concept basically replaces the set of primitive constants above with a set of static final object references encapsulated in a class that ...
Java developers have a choice for iterating collection of objects. Here's why the Java Iterator vs. Enumeration debate is all about the Iterator.
JPA and Hibernate enum mapping The Java enum, introduced in Java 5, will map to the underlying database without any intervention. The JPA framework, be it Hibernate or Toplink or DataNucleus, will ...