Java: Static Class?

Nick Heiner picture Nick Heiner · Dec 4, 2009 · Viewed 112.8k times · Source

I have a class full of utility functions. Instantiating an instance of it makes no semantic sense, but I still want to call its methods. What is the best way to deal with this? Static class? Abstract?

Answer

David Robles picture David Robles · Dec 4, 2009

Private constructor and static methods on a class marked as final.