How memory is allocated for these static variables? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How memory is allocated for these static variables?

16th Jun 2015, 4:14 AM
Bhalachandra bhat
Bhalachandra bhat - avatar
1 Antwort
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