let have an example.
public class test { public static void main(String args[]) { int a=5,b=4; int c=a+b; int d=9; System.out.println("ANSWER PLEASE.."); } } Now when we execute this code what os does?
It first create a variable named a and alocates a memory address similar things for b and c.
now what happen to d. os creates a new memory address or it just reffer to the address of c as the value is same.