Say I have a class and I have a static member in it, but I don\'t create any objects of that type. Will the memory be occupied for the static variable? If it would be occupi
Static variables are stored in a special memory area called BSS, while instances of a class are stored in a heap or on a stack. So, static members are stored separately.