Code:
Box myData = new Box();
Request clarification for exactly what is going.
Here is how I how think it works:
myData is a reference (or pointer?) to an object (which is also an instance?) of type Box. So myData has a reference address sort of like this: sdsafd@34234 which is the address in the heap memory of the object or instance of type Box? This address (sdsafd@34234) basically represents the object of type Box??
If I was to print myData right now it would print out the memory address which Java uses to reference to the object in heap? But the actual value of the this object is really null at this time because I have not assigned any value to it?