SPIRO THE TECH GURU

Back

What is static variable in java?

By Admin on

static variable:-

static variable is used to refer the common property of all objects (that is not unique for each object) e.g. company name of employees,college name of students etc.

static variable gets memory only once in class area at the time of class loading.


SPIRO Google Plus