How memory is allocated for these static variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How memory is allocated for these static variables?

16th Jun 2015, 4:14 AM
Bhalachandra bhat
Bhalachandra bhat - avatar
1 Answer
0
suppose you create two objects a and b. student a,b=new student(); if age is a data member of class student and declared as static the value of age remains same for both objects a and b
4th Sep 2015, 4:48 PM
vishnu vardhan
vishnu vardhan - avatar