why are java constants declared static?
If a constant is not static, Java will allocate a memory for that constant in every object of the class (i.e., one copy of the constant per object). If a constant is static, there will be only one copy of the constant for that class (i.e., one copy per class). Therefore, if the constant has … Read more