jayz_smith
asked on
private static final
hi all, please tell me why to use private static final in front of variable ? If the variable is final, its value will be constant in that class. So what is the need of static keyword because if the variable is static, it has only one instance throughout the class.... Please explain.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
perfect answer
It just says that one step of class initialization is assigning values to all its static fields, if there are no static fields, it does not need to assign anything.
ASKER