Originally posted by Manjiri Phadnis:
I am confused how static members can be accessed .Is it neccessary to use class name or reference of the object every time?or only for other class we should use it?
Inside of a class you can refer the static variables directly. For external classes qualify the static varible by class name.