> For the complete documentation index, see [llms.txt](https://hanfak.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanfak.gitbook.io/workspace/languages/java/intermediate/constants.md).

# Where to store them?

For example, a string template which describes the json response

* in the class, as a private constant
* in a enum
* in a class, just full of constants (data holder)
* in an interface
* in a file
  * but issues with IO performance for the size
* <https://stackoverflow.com/questions/1372991/should-a-collection-of-constants-be-placed-in-a-class-or-interface> -
