let's say i have declared like this:
static int x = 1;
Where does the variable and value is stored?
Some say while existence cursor of variable is stored in metaspace, the value of it will be stored in heap memory,
and others say the variable and value both will be stored in metaspace.
Which one is the right statement?
P.S: And if you can, can you give me a reference of info. too?