FAQ: Java: Introduction to Classes - Classes: Constructors

Hey @megasurfer02642 we are getting Store@2aae9190 and similar memory addresses in the output because as it explains in the very next lesson, we have only created a new object named lemonadeStand that is an instance (living physical example/sample) of the class Store. So far, we have not defined any attributes/characteristics/features or functions within the class Store, that the new object lemnadeStand must have.
So, by default the computer shows us the memory address of the ibject lemonadeStand because you have not given it any other information about lemonadeStand so far. Same for the objects fruit, banana and orange too.

In the next lesson when you will learn to define fields of an instance (in simpler words, other features of the object in your class) the computer will then show you those fields instead of showing memory address now.

Hope this helps you.

Hey @rantramp4142733147 you are getting Store@2aae9190 memory addresses in the output because as it explains in the very next lesson, we have only created a new object named lemonadeStand that is an instance (living physical example/sample) of the class Store. So far, we have not defined any attributes/characteristics/features or functions within the class Store, that the new object lemnadeStand must have.
So, by default the computer shows us the memory address of the ibject lemonadeStand because you have not given it any other information about lemonadeStand so far.
And I bet it is possible to get the same output without the memory address being printed if you define an empty instance field.

In the next lesson when you will learn to define fields of an instance (in simpler words, other features of the object in your class) the computer will then show you those fields instead of showing memory address now.

Although, I am months late in replying to this, hope this helps you.

simple answer is when you print object .the result is address of object
ex. if you print lemonadeStand object it print this object address in memory.