Ads

Wednesday, 21 March 2018

Difference between Static And Non-Static Members


Static Versus Non-Static Member


Static :

1.Preceded by "static" keyword
2.Memory is allocated at the time of loading of the class.
3.Only Once in the program.

Non-Static :

1.Should not be preceded by any keyword.
2.Memory allocated for whenever the object is created.
3.Memory is allowed multiple time.



Post a Comment

Click Here