Hi Here is the ans.
Class Var: Those var. which are associated with the class. e.g. Static var. of any class are class var. They have same value for each object and only one copy of these var. is maitained for all the objects.
Class Myclass
{
Static int objectCounter;
}
In java they are initialized with the default value by the compiler and user can initialize them in static block,
Member Var: Those var. which are associated with each object and have different value and different copy for each object. e.g.
Class Myclass
{
int i;
}
I hope u must have got the answer of ur que...
bye n have a nice day....!