News

Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using == . This is emphasized and reinforced to new developers ...
Although it is part of the java.util.concurrent package, the TimeUnit enum is useful in many contexts outside of concurrency.In this post, I look at how the TimeUnit enum can be used even in code ...
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 ...
Art sent me back to my terminal to rewrite the code. Decades later, I realize that Art was right. At the time, I only considered constants from the maintenance point of view: If I hardcoded some value ...