Why is it more efficient to use private static final String
Why is it more efficient to use: private static final String COLOR = \"red\"; instead of: private final String COLOR = \"red\"; as constant instance variable within a class definition?
Solution
It is more efficient to use private static final String COLOR=\"red\"; instead of private final String COLOR=\"red\"; as constant instance variable within a class defintion because :
