You are on page 1of 2

Static:

Static is a keyword which is mainly used for memory management . We can use static with variable,
method and block.

If you have to call method of another class which is written with keyword static then you need to
write it like this and this is called aggregation.

“Static properties” shared by all objects.


Static reference variable:
We can also make reference variable and we can access static ref
variable without help of an object.

You might also like