I have a class which have a static member. As I understand all static members are common for all instance of the class. So it means static members would get memory only once. Where is this memory is allocated (Stack or Heap) and when this memory get allocated.
EDIT: This memory is different from a instance level memory. How this memory get referenced. and Do this memory get allocated at the time of compilation