I have a class which as one of the static member of type enum. Below is the code
The output of the code is WINTER. But the question I have is, by default all non-initialized static members will be initialized to null. So I was expecting a NULL Pointer Exception while printing s.WINTER. Could some one explain why s is not initialized to null in this case.