Answer:
Static variables are stored on the Heap of the memory. It is not dependent on whether it is declared within a reference type or a value type.
These variables will be in the memory till the time program ends.
Asked In: Many Interviews |
Alert Moderator