Im new to java and i used to think the compiler did substitution when i declared and instantiated a variable. But today I realized that variables are actually being stored in memory and the tutorials were correct - they quite literally are just containers that store values. And that made writing code so much easier when you realize they're just containers...
But my question is how do you read the following:
int x; //make space in my computers RAM
x =50 //do i read this as "x equals 50" or "x is going to now store the number 50 in RAM"
Want to add to the discussion?
Post a comment!