Bagaimana Java tahu di mana ia telah menyimpan tipe data primitif

void foo() {
   int a = 5;
   system.out.println(a);
}
Dull Deer