Enums
-
Core Java
Of Hacking Enums and Modifying ‘final static’ Fields
In this newsletter, originally published in The Java Specialists’ Newsletter Issue 161 we examine how it is possible to create…
Read More » -
Core Java
Java Enums: You have grace, elegance and power and this is what I Love!
While Java 8 is coming, are you sure you know well the enums that were introduced in Java 5? Java…
Read More » -
Core Java
Java Enum puzzler
Let’s suppose we have the following code: enum Case { CASE_ONE, CASE_TWO, CASE_THREE; private static final int counter; private int…
Read More »