understanding about static, volatile and other variable modifiers