Java
  • Introduction
  • First Chapter
  • Utility Class
  • equalsbuilder&hashcodebuilder
  • @Deprecated
  • backward compatibility
  • EHCACHE
Powered by GitBook
On this page

Was this helpful?

Utility Class

PreviousFirst ChapterNextequalsbuilder&hashcodebuilder

Last updated 5 years ago

Was this helpful?

also known as helper class, which contains just static methods, it is stateless and cannot be instantiated. It contains a bunch of related methods, so they can be reused across the application. As an example consider Apache StringUtils, CollectionUtils or java.lang.Math.

https://www.vojtechruzicka.com/avoid-utility-classes/