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 :

 Why is it more efficient to use: private static final String COLOR = \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site