Search code examples
javaclassoopstaticutility

Java: Static Class?


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?


Solution

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