I am learning JAVA and understanding some of its specific oddities. For example I notice that JAVA loves instances but not variables.
In Python:
x = 1
y = 2
print(x,y)
yields (1,2)
then I do y = x and print
getting (1,1)
This makes sense to me since x and y are variables and thats how variables work.
In JAVA I notice this script:
This yields:
x = 0, y = 0
x = 9, y = 0
So I get that JAVA doesn't understand variables? Or only takes instances of variables? Is there any way to yield a true variable or you always have to update variable relationships?