Static variable is a variable
,which is not repeated to each and every object .It is shared by all
objects .It is also known as Class variable.Static methods only access the
static variable.By default static variables are initialized to zero.
Non-static variable ,which is repeated to each and every object.
|
No comments:
Post a Comment