I use enums for singletons, which is the recommended way to create
singletons in Effective Java by Joshua Bloch. Given I have used it in some
other places as well and heard no complaints so far, I did not convert them
to a final class with a private ctor. Should I?

On Tue, Nov 17, 2020 at 9:25 PM Gary Gregory <[email protected]> wrote:

> Hi all,
>
> Why is this an enum and not a class?
>
> Gary
>

Reply via email to