Java final modifier
问题 I was told that, I misunderstand effects of final . What are the effects of final keyword? Here is short overview of what I think, I know: Java final modifier (aka aggregation relation) primitive variables : can be set only once. (memory and performance gain) objects variables : may be modified, final applies to object reference. fields : can be set only once. methods : can\'t be overridden, hidden. classes : can\'t be extended. garbage collection : will force Java generational garbage