If the data will not change throughout the development of applications, why are you not going to use a static final , using with any access modifier , like you, and you can use it in your application and as a size refer to thousands or lakh of String data that will not implemented because we know that String is immutable and cannot change throughout the life of the application and one more thing with the declaration as final , so reinitialization will not be present, but only reuse. Select the entire line in the class so that it loads when the class loads, i.e. once. If anything else tells me.
source share