Difference between java enum with no values and utility class with private constructor

Using enum for something that’s not actually an enum is ugly and confusing. I’d say that’s enough reason not to do it.

The “utility class” pattern is perfectly legitimate. If your tools don’t like it, that’s a problem with the tools.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)