This question is asked here . According to the answer:
private final int NUMBER = 10;
If it cannot change, then there is no instance per instance.
My doubt is that if an instance of the class is created, say once a day, and it lasts a few seconds. Is it a good idea to store an int (in some case an object) in memory?
Assuming that there can be many such objects (20-30).
Batty source
share