use of static variable in Java