본문 바로가기

개발이야기

When should you use 'private static final'

반응형

'private static final variable' vs  'private final variable'
When should you use the 'static' keyword?
What is the difference between 'private static final variable' and 'private final variable'? 

The static keyword is used when all instances of the class must have the same value.
It is better to use it separately from instance variables.

반응형