Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
After a method ends, everything that's in there disappears.
So basically, that is all that happens.
And if you want to save something from the method and use it later, you need to return it.