class A // Normal Class
{
static int i; // Static int variable
int j; // Normal int variable
}
Suppose I create two objects namely A1
, A2
.
Do both objects have separate memory allocated for the variable i
or the common, Permgen space
What would be the size of A1
, A2
? If suppose the size of int
is assumed as 2 bytes.