I was wondering, if I have this field in my class : private final int foo = ...
, should I put it in static private static final int foo = ...
? Because if it's static, it's common to all the instances of my class, and will never change.
Is there a reason to not put it in static? Or do I have to put it in static?
See Question&Answers more detail:os