News

There are numerous new classes, enums, methods, and interfaces being added to JDK 7 that may not get significant coverage in the blogs and articles on Java 7. In this post, I list and describe ...
Learn how to serialize and deserialize enums in Java, the pros and cons of different approaches, and the best practices for doing it right. Skip to main content LinkedIn Articles ...
We’ll also take a look at java.lang.Enum<E extends Enum<E>>, which is the base class for all typesafe enums. What you’ll learn in this Java tutorial Why use typesafe enums and not enumerated types ...
The release of Java SE 15 in Sept 2020 will introduce "sealed classes" (JEP 360) as a preview feature. A sealed class is a class or interface which restricts which other classes or interfaces may ...
You are being asked to model a music shop. This shop will contain items which can be sold. These items might be instruments, which someone may play e.g. guitar, saxaphone, piano, etc, or, they might ...
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 ...