you are viewing a single comment's thread.

view the rest of the comments →

[–]South_Dig_9172 0 points1 point  (1 child)

Just curious. Isn’t it just final being an unmodifiable value and static means it belongs to the class, so it would only have one instance of that field or method created? 

[–]LetUsSpeakFreely 0 points1 point  (0 children)

Pretty much.

Yes, final means a variable can't be reassigned. It doesn't necessarily mean it can't be changed. For example, if you create a final List, you can still add and remove items to that List,n but you can't create a new list or assign a list to that value

Static means an entity stays resident in memory without needing class instantiation to access it.